- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for Int32Tensor (0.11 sec)
-
tensorflow/c/c_test_util.h
// Create a tensor with values of type TF_INT32 provided by `values`. TF_Tensor* Int32Tensor(const int64_t* dims, int num_dims, const int32_t* values); // Create 1 dimensional tensor with values from `values` TF_Tensor* Int32Tensor(const std::vector<int32_t>& values); TF_Tensor* Int32Tensor(int32_t v); TF_Tensor* DoubleTensor(double v); TF_Tensor* FloatTensor(float v);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 09 01:06:53 UTC 2018 - 6K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
Define(-1, {}, {feed}, {neg}, {}); // Use, run, and verify TF_Operation* func_feed = Placeholder(host_graph_, s_); TF_Operation* func_op = Use({func_feed}); Run({{func_feed, Int32Tensor(3)}}, func_op, -3); VerifyFDef({"neg_0"}, {{"feed", DT_INT32}}, {{"neg", DT_INT32}}, {{"feed", "neg_0:0"}, {"neg_0:y:0", "neg"}}, {}); } TEST_F(CApiFunctionTest, OneOutput_OutputNames) { /*
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_test.cc
} TEST_F(ShapeInferenceTest, InfersShapesFromInputTensors) { // Prepare some tensors for shape. TF_Tensor* tensor_1X6 = Int32Tensor({1, 6}); CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_); TF_Tensor* tensor_1X1X6 = Int32Tensor({1, 1, 6}); CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_); TFE_Op* reshape_op = TFE_NewOp(tfe_context_, "Reshape", status_);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
memcpy(TF_TensorData(t), values, sizeof(int32_t) * num_values); return t; } TF_Tensor* Int32Tensor(const std::vector<int32_t>& values) { int64_t dims = values.size(); return Int32Tensor(&dims, 1, values.data()); } TF_Tensor* Int32Tensor(int32_t v) { const int num_bytes = sizeof(int32_t); int32_t* values = new int32_t[1]; values[0] = v;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Oct 15 03:16:52 UTC 2021 - 17.8K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
// Create a session for this graph. CSession csession(graph, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); // Run the graph. csession.SetInputs({{feed, Int32Tensor(3)}}); csession.SetOutputs({add}); csession.Run(s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_Tensor* out = csession.output_tensor(0); ASSERT_TRUE(out != nullptr);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)