- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_AllocateTensor (0.07 sec)
-
tensorflow/c/c_api_test.cc
TF_DeleteStatus(status); } TEST(CAPI, TestBitcastFrom_Reshape) { int64_t dims[] = {2, 3}; TF_Tensor* a = TF_AllocateTensor(TF_UINT64, dims, 2, 6 * TF_DataTypeSize(TF_UINT64)); TF_Tensor* b = TF_AllocateTensor(TF_UINT64, nullptr, 0, TF_DataTypeSize(TF_UINT64)); EXPECT_NE(a, nullptr); EXPECT_NE(b, nullptr); EXPECT_EQ(6, TF_TensorElementCount(a));
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/eager/c_api_test.cc
std::vector<int64_t> dims(4, 1); TFE_Op* op = TFE_NewOp(ctx, "AvgPool", status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TF_Tensor* tensor = TF_AllocateTensor(TF_FLOAT, dims.data(), dims.size(), sizeof(float)); float tensor_data[] = {1}; memcpy(TF_TensorData(tensor), tensor_data, TF_TensorByteSize(tensor));
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0)