Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/c/kernels/
Dtensor_shape_utils.cc28 CHECK_GE(TF_NumDims(tensor), 0); in ShapeDebugString()
30 for (int i = 0; i < TF_NumDims(tensor); ++i) { in ShapeDebugString()
Dsummary_op.cc114 if (TF_NumDims(tensor1) != TF_NumDims(tensor2)) { in IsSameSize()
117 for (int d = 0; d < TF_NumDims(tensor1); d++) { in IsSameSize()
Dbitcast_op.cc99 dim_count = TF_NumDims(tensor); in BitcastOp_Compute()
Dhistogram_summary_op.cc82 if (TF_NumDims(safe_tags_ptr.get()) != 0) { in HistogramSummaryOp_Compute()
/external/tensorflow/tensorflow/c/experimental/saved_model/internal/
Dsaved_model_api_test.cc138 EXPECT_EQ(TF_NumDims(result), 0); in TEST_P()
278 EXPECT_EQ(TF_NumDims(result), 0); in TEST_P()
334 EXPECT_EQ(TF_NumDims(result), 0); in TEST_P()
403 EXPECT_EQ(TF_NumDims(result), 0); in TEST_P()
435 EXPECT_EQ(TF_NumDims(result), 0); in TEST_P()
468 EXPECT_EQ(TF_NumDims(result), 0); in TEST_P()
570 ASSERT_EQ(TF_NumDims(result), 0); in TEST_P()
/external/tensorflow/tensorflow/c/eager/
Dgradient_checker.cc40 int num_dims = TF_NumDims(t); in GetDims()
61 int num_dims_out = TF_NumDims(model_out_tensor); in RunAndMaybeSum()
117 int num_dims = TF_NumDims(theta_tensor); in CalcNumericalGrad()
/external/tensorflow/tensorflow/java/src/main/native/
Dtensor_jni.cc460 const jsize num_dims = TF_NumDims(t); in Java_org_tensorflow_Tensor_shape()
476 int num_dims = TF_NumDims(t); in Java_org_tensorflow_Tensor_setValue()
494 if (TF_NumDims(t) != 0) { \
515 if (TF_NumDims(t) != 0) { in Java_org_tensorflow_Tensor_scalarBytes()
535 int num_dims = TF_NumDims(t); in Java_org_tensorflow_Tensor_readNDArray()
/external/tensorflow/tensorflow/c/
Dtf_tensor.h117 TF_CAPI_EXPORT extern int TF_NumDims(const TF_Tensor*);
Dtf_tensor.cc151 int TF_NumDims(const TF_Tensor* t) { return t->tensor->NumDims(); } in TF_NumDims() function
163 int rank = TF_NumDims(t); in TF_TensorElementCount()
Dc_api_test.cc140 EXPECT_EQ(2, TF_NumDims(t)); in TEST()
165 EXPECT_EQ(2, TF_NumDims(t)); in TEST()
1005 EXPECT_EQ(0, TF_NumDims(out)); // scalar in TEST()
1022 EXPECT_EQ(0, TF_NumDims(out)); // scalar in TEST()
1066 EXPECT_EQ(0, TF_NumDims(out)); // scalar in RunMinTest()
1449 EXPECT_EQ(2, TF_NumDims(out)); in TEST()
1889 ASSERT_EQ(0, TF_NumDims(t)); in ScalarFloatFromTensor()
2312 EXPECT_EQ(ndims, TF_NumDims(value)); in TEST_F()
2313 for (int i = 0; i < TF_NumDims(value); ++i) { in TEST_F()
2348 EXPECT_EQ(0, TF_NumDims(t_out)); in TEST_F()
[all …]
Dwhile_loop_test.cc99 EXPECT_EQ(0, TF_NumDims(out)); in ExpectOutputValue()
Dkernels_test.cc940 EXPECT_EQ(0, TF_NumDims(output)); in TEST_F()
986 EXPECT_EQ(num_dims, TF_NumDims(tensor)); in validate_tensor()
Dc_api_function_test.cc106 EXPECT_EQ(1, TF_NumDims(out)); in RunT()
129 EXPECT_EQ(0, TF_NumDims(out)); // scalar in Run()
/external/tensorflow/tensorflow/cc/experimental/base/public/
Dtensor.h129 inline int Tensor::dims() const { return TF_NumDims(tensor_.get()); } in dims()
/external/tensorflow/tensorflow/c/experimental/gradients/
Dgrad_test_helper.cc85 auto num_dims_analytical = TF_NumDims(analytical_tensor); in CheckTensorValue()
/external/tensorflow/tensorflow/go/
Dtensor.go198 if ndims := int(C.TF_NumDims(c)); ndims > 0 {
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc310 const int ndims = TF_NumDims(tensor); in GetPyArrayDimensionsForTensor()