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

Method testLog

tensorflow/compiler/xla/python/xla_client_test.py:1002–1006  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1000 self._ExecuteAndCompareClose(c, expected=np.round(arr))
1001
1002 def testLog(self):
1003 c = self._NewComputation()
1004 arr = NumpyArrayF32([3.3, 12.1])
1005 c.Log(c.Constant(arr))
1006 self._ExecuteAndCompareClose(c, expected=np.log(arr))
1007
1008 def testLog1p(self):
1009 c = self._NewComputation()

Callers

nothing calls this directly

Calls 6

NumpyArrayF32Function · 0.85
_NewComputationMethod · 0.80
LogMethod · 0.45
ConstantMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected