Home
last modified time | relevance | path

Searched refs:result_tensor (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_tensor_coding_test.cc48 Tensor result_tensor; in Validate() local
49 EXPECT_TRUE(result_tensor.FromProto(response.tensor())); in Validate()
50 EXPECT_EQ(t.dtype(), result_tensor.dtype()); in Validate()
51 EXPECT_EQ(t.shape().DebugString(), result_tensor.shape().DebugString()); in Validate()
52 EXPECT_EQ(t.DebugString(), result_tensor.DebugString()); in Validate()
/external/tensorflow/tensorflow/c/experimental/gradients/
Dcustom_gradient_test.cc120 TF_Tensor* result_tensor; in TEST_P() local
121 s = GetValue(outputs[0], &result_tensor); in TEST_P()
123 auto result_value = static_cast<float*>(TF_TensorData(result_tensor)); in TEST_P()
126 TF_DeleteTensor(result_tensor); in TEST_P()
127 result_tensor = nullptr; in TEST_P()
/external/tensorflow/tensorflow/c/eager/
Dgradients_test.cc145 TF_Tensor* result_tensor; in TEST_P() local
146 s = GetValue(outputs[1], &result_tensor); in TEST_P()
148 auto result_value = static_cast<float*>(TF_TensorData(result_tensor)); in TEST_P()
151 TF_DeleteTensor(result_tensor); in TEST_P()
152 result_tensor = nullptr; in TEST_P()
Dc_api_unified_experimental_test.cc96 TF_Tensor* result_tensor = TFE_TensorHandleResolve(result_t, status.get()); in TEST_P() local
97 float* result_value = static_cast<float*>(TF_TensorData(result_tensor)); in TEST_P()
100 TF_DeleteTensor(result_tensor); in TEST_P()
161 TF_Tensor* result_tensor = TFE_TensorHandleResolve(result_t, status.get()); in TEST_P() local
165 memcpy(&result_data[0], TF_TensorData(result_tensor), in TEST_P()
166 TF_TensorByteSize(result_tensor)); in TEST_P()
173 TF_DeleteTensor(result_tensor); in TEST_P()
244 TF_Tensor* result_tensor = TFE_TensorHandleResolve(result_t, status.get()); in TEST_P() local
248 memcpy(&result_data[0], TF_TensorData(result_tensor), in TEST_P()
249 TF_TensorByteSize(result_tensor)); in TEST_P()
[all …]
Dunified_api_testutil.h67 Status GetValue(AbstractTensorHandle* t, TF_Tensor** result_tensor);
Dunified_api_testutil.cc176 Status GetValue(AbstractTensorHandle* t, TF_Tensor** result_tensor) { in GetValue() argument
182 *result_tensor = TFE_TensorHandleResolve(result_t, status.get()); in GetValue()
Dgradients_util.h52 Status GetValue(AbstractTensorHandle* t, TF_Tensor** result_tensor);
Dgradients_util.cc130 Status GetValue(AbstractTensorHandle* t, TF_Tensor** result_tensor) { in GetValue() argument
136 *result_tensor = TFE_TensorHandleResolve(result_t, status.get()); in GetValue()
/external/tensorflow/tensorflow/python/autograph/utils/
Dmisc_test.py68 for (i, j, k), result_tensor in results:
70 len(list(range(i, j, k))), self.evaluate(result_tensor))
/external/tensorflow/tensorflow/lite/kernels/hashtable/
Dhashtable_ops_test.cc293 auto* result_tensor = interpreter_->tensor(kResultTensorId); in GetLookupResult() local
294 auto result_tensor_shape = GetTensorShape(result_tensor); in GetLookupResult()
295 auto* result_tensor_data = GetTensorData<ValueType>(result_tensor); in GetLookupResult()
306 auto* result_tensor = interpreter_->tensor(kResultTwoTensorId); in GetLookupTwoResult() local
307 auto result_tensor_shape = GetTensorShape(result_tensor); in GetLookupTwoResult()
308 auto* result_tensor_data = GetTensorData<ValueType>(result_tensor); in GetLookupTwoResult()
319 auto* result_tensor = interpreter_->tensor(kResultTensorId); in GetStringLookupResult() local
320 auto result_tensor_shape = GetTensorShape(result_tensor); in GetStringLookupResult()
325 auto string_ref = GetString(result_tensor, i); in GetStringLookupResult()
/external/tensorflow/tensorflow/core/kernels/mlir_generated/
Dbase_op.h139 Tensor result_tensor = ConvertDescriptorToTensor<OutputDataType>( in Compute() local
142 ctx->set_output(0, result_tensor); in Compute()
/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_ops_test.py792 def _check(self, result_tensor, result_np, input_sp_t): argument
793 self.assertTrue(isinstance(result_tensor, sparse_tensor.SparseTensor))
796 result_tensor.indices)
798 result_tensor.dense_shape)
801 result_tensor.indices, result_tensor.dense_shape, result_tensor.values)
Dcwise_ops_unary_test.py121 def _check(self, result_tensor, result_np, input_sp_t, tol): argument
122 self.assertTrue(isinstance(result_tensor, sparse_tensor.SparseTensor))
124 self.assertAllEqual(input_sp_t.indices, result_tensor.indices)
125 self.assertAllEqual(input_sp_t.dense_shape, result_tensor.dense_shape)
127 self.assertAllClose(result_np, result_tensor.values)
129 self.assertAllClose(result_np, result_tensor.values, rtol=tol, atol=tol)
/external/tensorflow/tensorflow/python/client/
Dtf_session_helper.cc703 TF_Tensor* result_tensor; in TF_TryEvaluateConstant_wrapper() local
705 TF_TryEvaluateConstant(graph, output, &result_tensor, status); in TF_TryEvaluateConstant_wrapper()
708 Safe_TF_TensorPtr safe_result_tensor(result_tensor); in TF_TryEvaluateConstant_wrapper()
/external/tensorflow/tensorflow/python/keras/engine/
Dbase_layer_v1.py1869 result_tensor = value
1873 result_tensor = value
1874 metric_obj = result_tensor._metric_obj
1890 result_tensor = match(value)
1893 metric_obj, result_tensor = base_layer_utils.create_mean_metric(
Dfunctional_test.py1829 result_tensor = network({
1833 result = self.evaluate(result_tensor)
1855 result_tensor = network(array_ops.ones((1, 1), 'float32'))
1856 result = self.evaluate(result_tensor)
1888 result_tensor = network(
1891 result = self.evaluate(result_tensor)
/external/tensorflow/tensorflow/c/
Dc_api.cc2399 Tensor result_tensor; in TF_TryEvaluateConstant() local
2402 graph->graph.versions().producer(), &evaluated, &result_tensor); in TF_TryEvaluateConstant()
2405 *result = TF_TensorFromTensor(result_tensor, &status->status); in TF_TryEvaluateConstant()