MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetOpProperties

Method GetOpProperties

tensorflow/python/grappler/item.py:55–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 return tf_item.TF_IdentifyImportantOps(self.tf_item, sort_topologically)
54
55 def GetOpProperties(self):
56 ret_from_swig = tf_item.TF_GetOpProperties(self.tf_item)
57 properties = {}
58 for key, values in ret_from_swig.items():
59 prop = []
60 for value in values:
61 prop.append(
62 op_performance_data_pb2.OpInfo.TensorProperties.FromString(value))
63 properties[key] = prop
64 return properties
65
66 def GetColocationGroups(self):
67 """Return a list of hard colocation constraints.

Callers 15

testLoopsMethod · 0.95
testOpPropertiesMethod · 0.95
testFromTensorsMethod · 0.95
testFromTensorSlicesMethod · 0.95
testFromGeneratorMethod · 0.95
testRangeMethod · 0.95
_testTransformationMethod · 0.95
testBatchMethod · 0.95
testPaddedBatchMethod · 0.95
testFlatMapMethod · 0.95
testInterleaveMethod · 0.95
testMapMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by 14

testLoopsMethod · 0.76
testOpPropertiesMethod · 0.76
testFromTensorsMethod · 0.76
testFromTensorSlicesMethod · 0.76
testFromGeneratorMethod · 0.76
testRangeMethod · 0.76
_testTransformationMethod · 0.76
testBatchMethod · 0.76
testPaddedBatchMethod · 0.76
testFlatMapMethod · 0.76
testInterleaveMethod · 0.76
testMapMethod · 0.76