/external/tensorflow/tensorflow/c/eager/ |
D | c_api_test_util.cc | 35 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestScalarTensorHandle() 60 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestScalarTensorHandle() 72 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestScalarTensorHandle() 86 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in DoubleTestMatrixTensorHandle() 100 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestMatrixTensorHandle() 114 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestMatrixTensorHandleWithInput() 127 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestTensorHandleWithDimsFloat() 140 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestTensorHandleWithDimsInt() 159 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestMatrixTensorHandle100x100() 173 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in DoubleTestMatrixTensorHandle3X2() [all …]
|
D | mnist_gradients_test.cc | 113 TF_TensorByteSize(dA_tensor)); in TEST_P() 126 TF_TensorByteSize(dB_tensor)); in TEST_P() 190 TF_TensorByteSize(scores_tensor)); in TEST_P() 203 TF_TensorByteSize(loss_vals_tensor)); in TEST_P() 267 TF_TensorByteSize(scores_tensor)); in TEST_P() 280 TF_TensorByteSize(loss_vals_tensor)); in TEST_P() 336 TF_TensorByteSize(scores_tensor)); in TEST_P() 419 TF_TensorByteSize(dW1_tensor)); in TEST_P() 431 TF_TensorByteSize(dW2_tensor)); in TEST_P() 486 TF_TensorByteSize(dA_tensor)); in TEST_P()
|
D | gradient_checker.cc | 111 TF_TensorByteSize(theta_tensor)); in CalcNumericalGrad() 140 TF_TensorByteSize(theta_tensor)); in CalcNumericalGrad() 153 TF_TensorByteSize(theta_tensor)); in CalcNumericalGrad() 191 TF_TensorByteSize(grad_tensor)); in CalcNumericalGrad()
|
D | c_api_test.cc | 188 ASSERT_EQ(16, TF_TensorByteSize(t)); in TEST() 190 memcpy(&data[0], TF_TensorData(t), TF_TensorByteSize(t)); in TEST() 256 EXPECT_EQ(TF_TensorByteSize(t), TF_TensorByteSize(tcopy)) << tag; in TensorHandleCopyBetweenDevices() 258 0, memcmp(TF_TensorData(t), TF_TensorData(tcopy), TF_TensorByteSize(t))) in TensorHandleCopyBetweenDevices() 377 EXPECT_EQ(TF_TensorByteSize(t), TF_TensorByteSize(tcopy)); in TensorHandleCopyBetweenTwoGPUDevices() 379 0, memcmp(TF_TensorData(t), TF_TensorData(tcopy), TF_TensorByteSize(t))); in TensorHandleCopyBetweenTwoGPUDevices() 675 EXPECT_EQ(sizeof(result), TF_TensorByteSize(t)); in ExecuteAdd() 676 memcpy(&result[0], TF_TensorData(t), TF_TensorByteSize(t)); in ExecuteAdd() 743 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in Execute_MatMul_CPU() 744 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in Execute_MatMul_CPU() [all …]
|
D | c_api_distributed_test.cc | 216 EXPECT_EQ(sizeof(sum), TF_TensorByteSize(t)); in TestFunctionWithPackedInput() 217 memcpy(&sum, TF_TensorData(t), TF_TensorByteSize(t)); in TestFunctionWithPackedInput() 400 ASSERT_EQ(sizeof(sum), TF_TensorByteSize(t)); in TEST() 401 memcpy(&sum, TF_TensorData(t), TF_TensorByteSize(t)); in TEST() 528 ASSERT_EQ(sizeof(sum), TF_TensorByteSize(t)); in TestDistributedFunctionCancellation() 529 memcpy(&sum, TF_TensorData(t), TF_TensorByteSize(t)); in TestDistributedFunctionCancellation()
|
D | c_api_remote_test.cc | 89 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in TestRemoteExecute() 90 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in TestRemoteExecute()
|
D | c_api_remote_test_util.cc | 198 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in TestRemoteExecuteSilentCopies() 199 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in TestRemoteExecuteSilentCopies()
|
D | gradients_util.cc | 47 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in ScalarTensorHandleHelper() 61 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TensorHandleWithDimsFloatHelper() 75 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TensorHandleWithDimsIntHelper()
|
D | c_api_unified_experimental_test.cc | 166 TF_TensorByteSize(result_tensor)); in TEST_P() 249 TF_TensorByteSize(result_tensor)); in TEST_P() 335 TF_TensorByteSize(result_tensor)); in TEST_P() 528 memcpy(&result_data[0], TF_TensorData(f_t), TF_TensorByteSize(f_t)); in TEST_P() 892 memcpy(&result_data[0], TF_TensorData(f_t), TF_TensorByteSize(f_t)); in TEST_P()
|
D | gradient_checker_test.cc | 56 TF_TensorByteSize(numerical_tensor)); in CompareNumericalAndManualGradients()
|
D | c_api_cluster_test.cc | 47 EXPECT_EQ(sizeof(float) * expected_values.size(), TF_TensorByteSize(t)); in CheckTFE_TensorHandleHasFloats() 48 memcpy(actual_values.get(), TF_TensorData(t), TF_TensorByteSize(t)); in CheckTFE_TensorHandleHasFloats()
|
D | c_api_experimental_test.cc | 352 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in Executor_MatMul_CPU() 353 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in Executor_MatMul_CPU()
|
/external/tensorflow/tensorflow/c/experimental/gradients/ |
D | grad_test_helper.cc | 62 TF_TensorByteSize(numerical_tensor)); in CompareNumericalAndAutodiffGradients() 65 TF_TensorByteSize(analytical_tensor)); in CompareNumericalAndAutodiffGradients() 95 TF_TensorByteSize(analytical_tensor)); in CheckTensorValue()
|
/external/tensorflow/tensorflow/c/ |
D | tf_tensor.h | 124 TF_CAPI_EXPORT extern size_t TF_TensorByteSize(const TF_Tensor*);
|
D | c_api_test.cc | 143 EXPECT_EQ(num_bytes, TF_TensorByteSize(t)); in TEST() 168 EXPECT_EQ(num_bytes, TF_TensorByteSize(t)); in TEST() 1006 ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out)); in TEST() 1023 ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out)); in TEST() 1067 ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out)); in RunMinTest() 1520 EXPECT_EQ(6 * TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(a)); in TEST() 1521 EXPECT_EQ(TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(b)); in TEST() 1531 EXPECT_EQ(6 * TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(a)); in TEST() 1532 EXPECT_EQ(6 * TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(b)); in TEST() 1890 ASSERT_EQ(4, TF_TensorByteSize(t)); in ScalarFloatFromTensor() [all …]
|
D | tf_tensor.cc | 157 size_t TF_TensorByteSize(const TF_Tensor* t) { return t->tensor->ByteSize(); } in TF_TensorByteSize() function
|
D | while_loop_test.cc | 100 ASSERT_EQ(sizeof(int32_t), TF_TensorByteSize(out)); in ExpectOutputValue()
|
D | c_api_function_test.cc | 130 ASSERT_EQ(sizeof(int32_t), TF_TensorByteSize(out)); in Run() 138 size_t size = TF_TensorByteSize(t); in CompareInt32Tensor()
|
/external/tensorflow/tensorflow/cc/experimental/base/public/ |
D | tensor.h | 144 return TF_TensorByteSize(tensor_.get()); in num_bytes()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | ndarray_tensor.cc | 316 dims->push_back(TF_TensorByteSize(tensor)); in GetPyArrayDimensionsForTensor() 459 TF_TensorByteSize(tensor.get())) { in TF_TensorToPyArray() 462 TF_TensorByteSize(tensor.get()), " bytes"); in TF_TensorToPyArray()
|
/external/tensorflow/tensorflow/java/src/main/native/ |
D | tensor_jni.cc | 438 const size_t sz = TF_TensorByteSize(t); in Java_org_tensorflow_Tensor_buffer() 479 const size_t sz = TF_TensorByteSize(t); in Java_org_tensorflow_Tensor_setValue() 538 const size_t sz = TF_TensorByteSize(t); in Java_org_tensorflow_Tensor_readNDArray()
|
/external/tensorflow/tensorflow/go/ |
D | tensor.go | 379 length := int(C.TF_TensorByteSize(c))
|
/external/tensorflow/tensorflow/core/distributed_runtime/eager/ |
D | eager_service_impl_test.cc | 176 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in SetTensorProto()
|