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

Function FeedBlob

caffe2/python/workspace.py:352–364  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

350
351
352def 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
367def FetchBlobs(names):

Callers 2

__setitem__Method · 0.85
FeedImmediateFunction · 0.85

Calls 1

_Workspace_feed_blobFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…