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

Method testSetAttr

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

Source from the content-addressed store, hash-verified

785 # node_def have been updated to proper usage.
786 @test_util.run_deprecated_v1
787 def testSetAttr(self):
788 op = test_ops.int_attr().op
789 op._set_attr("foo", attr_value_pb2.AttrValue(i=2))
790 # TODO(skyewm): add node_def check
791 self.assertEqual(op.get_attr("foo"), 2)
792
793 # TODO(nolivia): test all error cases
794 def testAddControlInput(self):

Callers

nothing calls this directly

Calls 2

_set_attrMethod · 0.80
get_attrMethod · 0.45

Tested by

no test coverage detected