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)
| 376 | |
| 377 | |
| 378 | def 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 | |
| 396 | def FetchTorch(name): |
no test coverage detected
searching dependent graphs…