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

Function _IsIDEEPBlob

caffe2/python/data_parallel_model.py:1620–1629  ·  view source on GitHub ↗
(model, blob_name)

Source from the content-addressed store, hash-verified

1618 model._blob_to_device = mapping
1619
1620def _IsIDEEPBlob(model, blob_name):
1621 if blob_name in model._blob_to_device:
1622 return model._blob_to_device[blob_name].device_type == caffe2_pb2.IDEEP
1623 else:
1624 blob_name = "{}_{}/{}".format(
1625 model._device_prefix, model._devices[0], blob_name
1626 )
1627 if blob_name not in model._blob_to_device:
1628 return model._device_type == caffe2_pb2.IDEEP
1629 return model._blob_to_device[blob_name].device_type == caffe2_pb2.IDEEP
1630
1631def _IsGPUBlob(model, blob_name):
1632 if blob_name in model._blob_to_device:

Callers 3

_BroadcastFunction · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…