- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TF_TensorByteSize (0.07 sec)
-
tensorflow/c/eager/c_api_test.cc
TFE_DeleteTensorHandle(hcopy); if (TF_GetCode(status.get()) != TF_OK) { ADD_FAILURE() << tag; continue; } EXPECT_EQ(TF_TensorByteSize(t), TF_TensorByteSize(tcopy)) << tag; EXPECT_EQ( 0, memcmp(TF_TensorData(t), TF_TensorData(tcopy), TF_TensorByteSize(t))) << tag; TF_DeleteTensor(tcopy); } TF_DeleteDeviceList(devices); TF_DeleteTensor(t);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
EXPECT_NE(b, nullptr); EXPECT_EQ(6, TF_TensorElementCount(a)); EXPECT_EQ(1, TF_TensorElementCount(b)); EXPECT_EQ(6 * TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(a)); EXPECT_EQ(TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(b)); int64_t new_dims[] = {3, 2}; TF_Status* status = TF_NewStatus(); TF_TensorBitcastFrom(a, TF_UINT64, b, new_dims, 2, status);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
ASSERT_EQ(sizeof(int32_t), TF_TensorByteSize(out)); int32_t* output_contents = static_cast<int32_t*>(TF_TensorData(out)); EXPECT_EQ(expected_results[i], *output_contents); } } void CompareInt32Tensor(const std::vector<int32_t>& expected, TF_Tensor* t) { int32_t* data = static_cast<int32_t*>(TF_TensorData(t)); size_t size = TF_TensorByteSize(t);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0)