Home
last modified time | relevance | path

Searched refs:TF_NumDims (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/java/src/main/native/
Dtensor_jni.cc511 const jsize num_dims = TF_NumDims(t); in Java_org_tensorflow_Tensor_shape()
527 int num_dims = TF_NumDims(t); in Java_org_tensorflow_Tensor_setValue()
545 if (TF_NumDims(t) != 0) { \
566 if (TF_NumDims(t) != 0) { in Java_org_tensorflow_Tensor_scalarBytes()
598 int num_dims = TF_NumDims(t); in Java_org_tensorflow_Tensor_readNDArray()
/external/tensorflow/tensorflow/c/
Dc_api_experimental_test.cc49 ASSERT_EQ(0, TF_NumDims(out)); // scalar in TestFakeIteratorStack()
98 ASSERT_EQ(4, TF_NumDims(image)); in TEST()
111 ASSERT_EQ(1, TF_NumDims(label)); in TEST()
Dc_api_test.cc137 EXPECT_EQ(2, TF_NumDims(t)); in TEST()
162 EXPECT_EQ(2, TF_NumDims(t)); in TEST()
968 EXPECT_EQ(0, TF_NumDims(out)); // scalar in TEST()
985 EXPECT_EQ(0, TF_NumDims(out)); // scalar in TEST()
1029 EXPECT_EQ(0, TF_NumDims(out)); // scalar in RunMinTest()
1411 EXPECT_EQ(2, TF_NumDims(out)); in TEST()
1851 ASSERT_EQ(0, TF_NumDims(t)); in ScalarFloatFromTensor()
2274 EXPECT_EQ(ndims, TF_NumDims(value)); in TEST_F()
2275 for (int i = 0; i < TF_NumDims(value); ++i) { in TEST_F()
2309 EXPECT_EQ(0, TF_NumDims(t_out)); in TEST_F()
[all …]
Dwhile_loop_test.cc100 EXPECT_EQ(0, TF_NumDims(out)); in ExpectOutputValue()
Dc_api_function_test.cc106 EXPECT_EQ(1, TF_NumDims(out)); in RunT()
129 EXPECT_EQ(0, TF_NumDims(out)); // scalar in Run()
1718 EXPECT_EQ(0, TF_NumDims(out)); // scalar in TEST_F()
Dc_api.h263 TF_CAPI_EXPORT extern int TF_NumDims(const TF_Tensor*);
Dc_api.cc258 int TF_NumDims(const TF_Tensor* t) { return t->shape.dims(); } in TF_NumDims() function
267 int rank = TF_NumDims(t); in TF_TensorElementCount()
/external/tensorflow/tensorflow/c/kernels/
Dbitcast_op.cc97 dim_count = TF_NumDims(tensor); in BitcastOp_Compute()
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc274 const int ndims = TF_NumDims(tensor); in GetPyArrayDimensionsForTensor()
/external/tensorflow/tensorflow/go/
Dtensor.go143 if ndims := int(C.TF_NumDims(c)); ndims > 0 {