Home
last modified time | relevance | path

Searched refs:assertArrayNear (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/array_ops/
Dinit_ops_test.py574 self.assertArrayNear(self._LinSpace(1., 5., 1), np.array([1.]), 1e-5)
575 self.assertArrayNear(self._LinSpace(1., 5., 2), np.array([1., 5.]), 1e-5)
576 self.assertArrayNear(
578 self.assertArrayNear(
584 self.assertArrayNear(self._LinSpace(-1., -5., 1), np.array([-1.]), 1e-5)
585 self.assertArrayNear(
587 self.assertArrayNear(
589 self.assertArrayNear(
595 self.assertArrayNear(self._LinSpace(-1., 5., 1), np.array([-1.]), 1e-5)
596 self.assertArrayNear(
[all …]
/external/tensorflow/tensorflow/python/framework/experimental/
Dunified_api_test.py320 self.assertArrayNear(func_output.numpy(), [0.69314], 0.001)
323 self.assertArrayNear(eager_output.numpy(), [0.69314], 0.001)
344 self.assertArrayNear(func_outputs.numpy(), [0.5], 0.001)
347 self.assertArrayNear(eager_outputs.numpy(), [0.5], 0.001)
365 self.assertArrayNear(func_output.numpy(), [0.5], 0.001)
368 self.assertArrayNear(eager_output.numpy(), [0.5], 0.001)
391 self.assertArrayNear(func_outputs[0].numpy(), [0.25], 0.001)
392 self.assertArrayNear(func_outputs[1].numpy(), [-0.125], 0.001)
395 self.assertArrayNear(eager_outputs[0].numpy(), [0.25], 0.001)
396 self.assertArrayNear(eager_outputs[1].numpy(), [-0.125], 0.001)
/external/tensorflow/tensorflow/python/ops/
Dquantized_ops_test.py41 self.assertArrayNear(expected_output, value.output, 0.1)
52 self.assertArrayNear(expected_output, value, 0.1)
Dquantized_conv_ops_test.py80 self.assertArrayNear(expected, float_output.flatten(), 1.0)
/external/tensorflow/tensorflow/tools/compatibility/testdata/
Dtest_file_v1_12.py81 self.assertArrayNear(
/external/tensorflow/tensorflow/python/framework/
Dtest_util_test.py418 self.assertArrayNear(a, b, 0.001)
422 self.assertArrayNear(a, b, 0.001)
425 self.assertArrayNear(a, b, 0.001)
Dtest_util.py2874 def assertArrayNear(self, farray1, farray2, err, msg=None): member in TensorFlowTestCase
/external/tensorflow/tensorflow/python/kernel_tests/nn_ops/
Dconv_ops_test.py1178 self.assertArrayNear(expected, value.flatten(), err)
1359 self.assertArrayNear(value_2.flatten(), value.flatten(), err)
1404 self.assertArrayNear(value_2.flatten(), value.flatten(), err)
2705 self.assertArrayNear(expected, np.ravel(value), 1e-5)
2830 self.assertArrayNear(expected, np.ravel(value), 2e-3)
Dconv_ops_3d_test.py844 self.assertArrayNear(expected_value.flatten(), actual_value.flatten(),
Ddepthwise_conv_op_base.py562 self.assertArrayNear(expected, np.ravel(value), 1e-5)
/external/tensorflow/tensorflow/compiler/tests/
Ddepthwise_conv_op_test.py285 self.assertArrayNear(expected, np.ravel(value), 1e-4)
/external/tensorflow/tensorflow/lite/python/
Dlite_v2_test.py4141 self.assertArrayNear(expected_output[0], output_data[0], err=1e-2)
4172 self.assertArrayNear(expected_output[0], output_data[0], err=1e-2)
4386 self.assertArrayNear(
4443 self.assertArrayNear(