MCPcopy Create free account
hub / github.com/pytorch/pytorch / FetchBlob

Function FetchBlob

caffe2/python/workspace.py:378–393  ·  view source on GitHub ↗

Fetches a blob from the workspace. Inputs: name: the name of the blob - a string or a BlobReference Returns: Fetched blob (numpy array or string) if successful

(name)

Source from the content-addressed store, hash-verified

376
377
378def FetchBlob(name):
379 """Fetches a blob from the workspace.
380
381 Inputs:
382 name: the name of the blob - a string or a BlobReference
383 Returns:
384 Fetched blob (numpy array or string) if successful
385 """
386 result = C.fetch_blob(StringifyBlobName(name))
387 if isinstance(result, tuple):
388 raise TypeError(
389 "Use FetchInt8Blob to fetch Int8 Blob {}".format(
390 StringifyBlobName(name)
391 )
392 )
393 return result
394
395
396def FetchTorch(name):

Callers 3

FetchBlobsFunction · 0.85
__getitem__Method · 0.85
FetchImmediateFunction · 0.85

Calls 3

StringifyBlobNameFunction · 0.85
isinstanceFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…