MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / fetch_any_blob

Function fetch_any_blob

detectron2/export/shared.py:152–161  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

150
151
152def fetch_any_blob(name):
153 bb = None
154 try:
155 bb = workspace.FetchBlob(name)
156 except TypeError:
157 bb = workspace.FetchInt8Blob(name)
158 except Exception as e:
159 logger.error("Get blob {} error: {}".format(name, e))
160
161 return bb
162
163
164# ==== torch/utils_caffe2/protobuf.py ==========================================

Callers 1

get_params_from_init_netFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected