- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for dimensions (0.14 sec)
-
tensorflow/c/c_api.h
// entries (e.g., the return value of TF_GraphGetTensorNumDims). // // If the number of dimensions in the shape is unknown or the shape is // a scalar, `dims` will remain untouched. Otherwise, each element of // `dims` will be set corresponding to the size of the dimension. An // unknown dimension is represented by `-1`. // // Returns an error into `status` if: // * `output` is not in `graph`.
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Oct 26 21:08:15 GMT 2023 - 82.3K bytes - Viewed (3) -
tensorflow/c/c_api_test.cc
// Fetch the shape and validate it is 2 by -1. num_dims = TF_GraphGetTensorNumDims(graph, feed_out_0, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); EXPECT_EQ(2, num_dims); // Resize the dimension vector appropriately. int64_t returned_dims[2]; TF_GraphGetTensorShape(graph, feed_out_0, returned_dims, num_dims, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); EXPECT_EQ(dims[0], returned_dims[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)