- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for static_cast (0.07 sec)
-
tensorflow/c/c_api_test.cc
TEST(CAPI, DataTypeEnum) { EXPECT_EQ(TF_FLOAT, static_cast<TF_DataType>(tensorflow::DT_FLOAT)); EXPECT_EQ(TF_DOUBLE, static_cast<TF_DataType>(tensorflow::DT_DOUBLE)); EXPECT_EQ(TF_INT32, static_cast<TF_DataType>(tensorflow::DT_INT32)); EXPECT_EQ(TF_UINT8, static_cast<TF_DataType>(tensorflow::DT_UINT8)); EXPECT_EQ(TF_INT16, static_cast<TF_DataType>(tensorflow::DT_INT16)); EXPECT_EQ(TF_INT8, static_cast<TF_DataType>(tensorflow::DT_INT8));
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
ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); #ifndef NDEBUG if (enable_grappler) EXPECT_NE(strstr(static_cast<const char*>(buf->data), "tf.Mul"), nullptr); else EXPECT_NE(strstr(static_cast<const char*>(buf->data), "tf.Add"), nullptr); #endif TF_DeleteBuffer(buf); } TFE_ContextRemoveFunction(ctx, "AddFunction", status);
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_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)