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

Method setUp

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

Source from the content-addressed store, hash-verified

384 """Tests focusing on Parameter ops and argument-passing."""
385
386 def setUp(self):
387 self.f32_scalar_2 = NumpyArrayF32(2.0)
388 self.f32_4vector = NumpyArrayF32([-2.3, 3.3, -4.3, 5.3])
389 self.f64_scalar_2 = NumpyArrayF64(2.0)
390 self.f64_4vector = NumpyArrayF64([-2.3, 3.3, -4.3, 5.3])
391 self.s32_scalar_3 = NumpyArrayS32(3)
392 self.s32_4vector = NumpyArrayS32([10, 15, -2, 7])
393 self.s64_scalar_3 = NumpyArrayS64(3)
394 self.s64_4vector = NumpyArrayS64([10, 15, -2, 7])
395
396 def testScalarTimesVectorAutonumberF32(self):
397 c = self._NewComputation()

Callers

nothing calls this directly

Calls 4

NumpyArrayF32Function · 0.85
NumpyArrayF64Function · 0.85
NumpyArrayS32Function · 0.85
NumpyArrayS64Function · 0.85

Tested by

no test coverage detected