- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for 10 (0.28 sec)
-
tensorflow/c/c_api_function_test.cc
* constant * | * v */ // Define TF_Operation* c = ScalarConst(10, func_graph_, s_, "scalar10"); Define(-1, {}, {}, {c}, {}); // Use, run, and verify TF_Operation* func_op = Use({}); Run({}, func_op, 10); VerifyFDef({"scalar10_0"}, {}, {{"scalar10", DT_INT32}}, {{"scalar10_0:output:0", "scalar10"}}, {}); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6) -
tensorflow/c/eager/c_api_test.cc
float product[4] = {0}; EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); TF_DeleteTensor(t); EXPECT_EQ(7, product[0]); EXPECT_EQ(10, product[1]); EXPECT_EQ(15, product[2]); EXPECT_EQ(22, product[3]); TF_DeleteStatus(status); } TEST(CAPI, Execute_MatMul_CPU) { Execute_MatMul_CPU(false); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1) -
tensorflow/c/eager/c_api_experimental_test.cc
float product[4] = {0}; EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); TF_DeleteTensor(t); EXPECT_EQ(7, product[0]); EXPECT_EQ(10, product[1]); EXPECT_EQ(15, product[2]); EXPECT_EQ(22, product[3]); TF_DeleteStatus(status); } TEST(CAPI, Executor_MatMul_CPU) { Executor_MatMul_CPU(false); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get()); /* Want to test simple MatAdd example with abstract tensors: [[1,2] , + [[5,6], = [[6,8], [3,4] ] [7,8] ] [10,12]] */ // Build 1st Matrix. int64_t dims[] = {2, 2}; // Matrices will be 2 x 2 int num_dims = sizeof(dims) / sizeof(dims[0]); float vals1[] = {1.0f, 2.0f, 3.0f, 4.0f};
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 19 21:44:52 GMT 2023 - 39.1K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); feed2_ = Placeholder(graph_, s_, "feed2"); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); constant_ = ScalarConst(10, graph_, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); desc_ = TF_NewOperation(graph_, "AddN", "add"); TF_Output inputs[] = {{feed1_, 0}, {constant_, 0}};
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3)