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

Method _get_test_attrs

tensorflow/python/framework/ops_test.py:2886–2896  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2884class AttrScopeTest(test_util.TensorFlowTestCase):
2885
2886 def _get_test_attrs(self):
2887 x = control_flow_ops.no_op()
2888 try:
2889 a = compat.as_text(x.get_attr("_A"))
2890 except ValueError:
2891 a = None
2892 try:
2893 b = compat.as_text(x.get_attr("_B"))
2894 except ValueError:
2895 b = None
2896 return (a, b)
2897
2898 @test_util.run_deprecated_v1
2899 def testNoLabel(self):

Callers 2

testNoLabelMethod · 0.95
testLabelMapMethod · 0.95

Calls 1

get_attrMethod · 0.45

Tested by

no test coverage detected