Feeds a blob into the workspace. Inputs: name: the name of the blob. arr: either a TensorProto object or a numpy array object to be fed into the workspace. device_option (optional): the device option to feed the data with. Returns: True or False, stating wh
(name, arr, device_option=None)
| 350 | |
| 351 | |
| 352 | def FeedBlob(name, arr, device_option=None): |
| 353 | """Feeds a blob into the workspace. |
| 354 | |
| 355 | Inputs: |
| 356 | name: the name of the blob. |
| 357 | arr: either a TensorProto object or a numpy array object to be fed into |
| 358 | the workspace. |
| 359 | device_option (optional): the device option to feed the data with. |
| 360 | Returns: |
| 361 | True or False, stating whether the feed is successful. |
| 362 | """ |
| 363 | ws = C.Workspace.current |
| 364 | return _Workspace_feed_blob(ws, name, arr, device_option) |
| 365 | |
| 366 | |
| 367 | def FetchBlobs(names): |
no test coverage detected
searching dependent graphs…