Home
last modified time | relevance | path

Searched refs:kUnknownRank (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/framework/
Dshape_inference.h159 static constexpr int32 kUnknownRank = -1; variable
330 if (!s.Handle() || s->rank_ == kUnknownRank) { in Dim()
337 CHECK_NE(s->rank_, kUnknownRank); in DimKnownRank()
345 return s.IsSet() ? s->rank_ : kUnknownRank; in Rank()
348 return (s.IsSet() && (Rank(s) != kUnknownRank)); in RankKnown()
787 inline Shape::Shape() : rank_(InferenceContext::kUnknownRank) {} in Shape()
Dtensor_shape.h137 static constexpr uint8 kUnknownRank = 255; variable
287 return kIsPartial && ndims_byte() == kUnknownRank; in unknown_rank()
294 return kIsPartial && dims == kUnknownRank ? -1 : dims; in dims()
Dshape_inference.cc29 constexpr int32 InferenceContext::kUnknownRank; member in tensorflow::shape_inference::InferenceContext
256 if (rank == kUnknownRank) return UnknownDim(); in NumElements()
318 if (existing == kUnknownRank) { in WithRank()
339 if (existing >= rank || existing == kUnknownRank) { in WithRankAtLeast()
354 if (existing <= rank || existing == kUnknownRank) { in WithRankAtMost()
695 if (rank == kUnknownRank) { in UnknownShapeOfRank()
Dtensor_shape.cc147 set_ndims_byte(kUnknownRank); in TensorShapeBase()
167 out->set_ndims_byte(kUnknownRank); in BuildTensorShapeBase()
303 set_ndims_byte(kUnknownRank); in TensorShapeBase()
Dcommon_shape_fns.cc880 if (c->Rank(specified_input_grad_shape) == InferenceContext::kUnknownRank) { in Conv2DBackpropInputShape()
1895 int32 rank = InferenceContext::kUnknownRank; in ConcatShapeHelper()
1897 if (rank == InferenceContext::kUnknownRank) rank = c->Rank(c->input(i)); in ConcatShapeHelper()
1898 if (rank != InferenceContext::kUnknownRank) { in ConcatShapeHelper()
1902 if (rank == InferenceContext::kUnknownRank) { in ConcatShapeHelper()
Dshape_inference_test.cc282 EXPECT_EQ(InferenceContext::kUnknownRank, c.Rank(in0)); in TEST_F()
/external/tensorflow/tensorflow/c/eager/
Dc_api_unified_experimental_graph.cc49 auto& kUnknownRank = shape_inference::InferenceContext::kUnknownRank; variable
69 if (num_dims == kUnknownRank) { in Shape()
/external/tensorflow/tensorflow/core/ops/
Dcount_ops.cc54 if (rank != c->kUnknownRank) { in RaggedCountSparseOutputShapeFn()
Darray_ops.cc618 if (rank == InferenceContext::kUnknownRank) { in __anon42d741190b02()
/external/tensorflow/tensorflow/c/
Dc_api_experimental.cc657 if (input_shape.num_dims == InferenceContext::kUnknownRank) { in TFE_InferShapes()
691 if (shape.num_dims == InferenceContext::kUnknownRank) { in TFE_InferShapes()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dtensor_handle.cc579 if (num_dims == shape_inference::InferenceContext::kUnknownRank) { in SetInferenceShape()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgeneric_layout_optimizer_transposer.cc70 constexpr int kUnknownRank = -1; variable
568 return kUnknownRank; in GetFanoutPortRank()