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

Method testExecuteIntAttr

tensorflow/python/eager/core_test.py:699–705  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

697 attrs=('tolerance', '0.3', 'T', dtypes.float32.as_datatype_enum))
698
699 def testExecuteIntAttr(self):
700 total = execute(
701 b'AddN',
702 num_outputs=1,
703 inputs=[constant_op.constant(3), constant_op.constant(4)],
704 attrs=('T', dtypes.int32.as_datatype_enum, 'N', 2))[0]
705 self.assertAllEqual(7, total)
706
707 def testExecuteIntAttrBadValue(self):
708 with self.assertRaises(errors.InvalidArgumentError):

Callers

nothing calls this directly

Calls 3

executeFunction · 0.70
constantMethod · 0.45
assertAllEqualMethod · 0.45

Tested by

no test coverage detected