Home
last modified time | relevance | path

Searched refs:TF_TensorByteSize (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/c/eager/
Dc_api_test_util.cc27 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestScalarTensorHandle()
39 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestScalarTensorHandle()
51 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestScalarTensorHandle()
65 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in DoubleTestMatrixTensorHandle()
79 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestMatrixTensorHandle()
93 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in DoubleTestMatrixTensorHandle3X2()
107 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestMatrixTensorHandle3X2()
149 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in TestAxisTensorHandle()
Dc_api_test.cc182 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in TestRemoteExecute()
183 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in TestRemoteExecute()
269 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in TestRemoteExecuteSilentCopies()
270 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in TestRemoteExecuteSilentCopies()
307 EXPECT_EQ(sizeof(float) * expected_values.size(), TF_TensorByteSize(t)); in CheckTFE_TensorHandleHasFloats()
308 memcpy(actual_values.get(), TF_TensorData(t), TF_TensorByteSize(t)); in CheckTFE_TensorHandleHasFloats()
448 ASSERT_EQ(16, TF_TensorByteSize(t)); in TEST()
450 memcpy(&data[0], TF_TensorData(t), TF_TensorByteSize(t)); in TEST()
515 EXPECT_EQ(TF_TensorByteSize(t), TF_TensorByteSize(tcopy)) << tag; in TensorHandleCopyBetweenDevices()
517 0, memcmp(TF_TensorData(t), TF_TensorData(tcopy), TF_TensorByteSize(t))) in TensorHandleCopyBetweenDevices()
[all …]
Dc_api_experimental_test.cc94 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in ExecuteWithProfiling()
95 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in ExecuteWithProfiling()
/external/tensorflow/tensorflow/c/
Dc_api_experimental_test.cc50 ASSERT_EQ(sizeof(float), TF_TensorByteSize(out)); in TestFakeIteratorStack()
104 TF_TensorByteSize(image)); in TEST()
113 ASSERT_EQ(sizeof(int32) * batch_size, TF_TensorByteSize(label)); in TEST()
202 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in TEST()
203 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in TEST()
283 EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); in TEST()
284 memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); in TEST()
Dc_api_test.cc140 EXPECT_EQ(num_bytes, TF_TensorByteSize(t)); in TEST()
165 EXPECT_EQ(num_bytes, TF_TensorByteSize(t)); in TEST()
969 ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out)); in TEST()
986 ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out)); in TEST()
1030 ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out)); in RunMinTest()
1482 EXPECT_EQ(6 * TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(a)); in TEST()
1483 EXPECT_EQ(TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(b)); in TEST()
1493 EXPECT_EQ(6 * TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(a)); in TEST()
1494 EXPECT_EQ(6 * TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(b)); in TEST()
1852 ASSERT_EQ(4, TF_TensorByteSize(t)); in ScalarFloatFromTensor()
[all …]
Dwhile_loop_test.cc101 ASSERT_EQ(sizeof(int32_t), TF_TensorByteSize(out)); in ExpectOutputValue()
Dc_api_function_test.cc130 ASSERT_EQ(sizeof(int32_t), TF_TensorByteSize(out)); in Run()
138 size_t size = TF_TensorByteSize(t); in CompareInt32Tensor()
1719 ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out)); in TEST_F()
Dc_api.h270 TF_CAPI_EXPORT extern size_t TF_TensorByteSize(const TF_Tensor*);
Dc_api.cc262 size_t TF_TensorByteSize(const TF_Tensor* t) { return t->buffer->size(); } in TF_TensorByteSize() function
501 TF_TensorByteSize(src)))) { in TF_TensorToTensor()
515 const size_t src_size = TF_TensorByteSize(src); in TF_TensorToTensor()
/external/tensorflow/tensorflow/java/src/main/native/
Dtensor_jni.cc244 plimit_(poffsets_ + TF_TensorByteSize(t)) {} in StringTensorWriter()
276 limit_(offsets_ + TF_TensorByteSize(t)) {} in StringTensorReader()
489 const size_t sz = TF_TensorByteSize(t); in Java_org_tensorflow_Tensor_buffer()
530 const size_t sz = TF_TensorByteSize(t); in Java_org_tensorflow_Tensor_setValue()
577 size_t src_len = TF_TensorByteSize(t) - 8; in Java_org_tensorflow_Tensor_scalarBytes()
601 const size_t sz = TF_TensorByteSize(t); in Java_org_tensorflow_Tensor_readNDArray()
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc223 const size_t tensor_size = TF_TensorByteSize(src); in CopyTF_TensorStringsToPyArray()
279 dims.push_back(TF_TensorByteSize(tensor)); in GetPyArrayDimensionsForTensor()
401 TF_TensorByteSize(tensor.get())) { in TF_TensorToPyArray()
404 TF_TensorByteSize(tensor.get()), " bytes"); in TF_TensorToPyArray()
/external/tensorflow/tensorflow/core/distributed_runtime/eager/
Deager_service_impl_test.cc89 memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t)); in SetTensorProto()
/external/tensorflow/tensorflow/go/
Dtensor.go209 length := int(C.TF_TensorByteSize(c))