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

Function InferOpBlobDevicesAsDict

caffe2/python/core.py:166–176  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

164
165
166def InferOpBlobDevicesAsDict(op):
167 input_dev_list, output_dev_list = InferOpBlobDevices(op)
168 input_dict = {
169 op.input[i]: input_dev_list[i]
170 for i in range(len(op.input))
171 }
172 output_dict = {
173 op.output[i]: output_dev_list[i]
174 for i in range(len(op.output))
175 }
176 return input_dict, output_dict
177
178
179def InferOpBlobDevices(op):

Callers 1

CheckSimpleMethod · 0.90

Calls 2

InferOpBlobDevicesFunction · 0.85
rangeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…