MCPcopy Index your code
hub / github.com/pytorch/pytorch / CreateNet

Function CreateNet

caffe2/python/workspace.py:183–194  ·  view source on GitHub ↗
(net, overwrite=False, input_blobs=None)

Source from the content-addressed store, hash-verified

181
182
183def CreateNet(net, overwrite=False, input_blobs=None):
184 TriggerLazyImport()
185 if input_blobs is None:
186 input_blobs = []
187 for input_blob in input_blobs:
188 C.create_blob(input_blob)
189 return CallWithExceptionIntercept(
190 C.create_net,
191 C.Workspace.current._last_failed_op_net_position,
192 GetNetName(net),
193 StringifyProto(net), overwrite,
194 )
195
196
197def Predictor(init_net, predict_net):

Callers

nothing calls this directly

Calls 4

TriggerLazyImportFunction · 0.90
GetNetNameFunction · 0.85
StringifyProtoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…