Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/kernels/shim/
Dshape.h60 const int Rank() const { return has_value_ ? value_.size() : kUnknownRank; } in Rank()
85 static constexpr int kUnknownRank = -1; variable
Dtf_op_shim.h127 static_assert(::tensorflow::shape_inference::InferenceContext::kUnknownRank ==
128 Shape::kUnknownRank,
/external/tensorflow/tensorflow/core/ops/
Duniform_quant_ops.cc35 if (scales_rank == shape_inference::InferenceContext::kUnknownRank || in ScalesZeroPointsShapeValid()
36 zero_points_rank == shape_inference::InferenceContext::kUnknownRank) { in ScalesZeroPointsShapeValid()
Dcount_ops.cc56 if (rank != c->kUnknownRank) { in RaggedCountSparseOutputShapeFn()
Dragged_array_ops.cc110 if (rank == InferenceContext::kUnknownRank) { in __anon8359b0a00102()
Darray_ops.cc619 if (rank == InferenceContext::kUnknownRank) { in __anon091a71b70b02()
/external/tensorflow/tensorflow/core/framework/
Dshape_inference.h235 static constexpr int32_t kUnknownRank = -1; variable
414 if (!s.Handle() || s->rank_ == kUnknownRank) { in Dim()
421 CHECK_NE(s->rank_, kUnknownRank); in DimKnownRank()
429 return s.IsSet() ? s->rank_ : kUnknownRank; in Rank()
432 return (s.IsSet() && (Rank(s) != kUnknownRank)); in RankKnown()
878 inline Shape::Shape() : rank_(InferenceContext::kUnknownRank) {} in Shape()
Dtensor_shape.h135 static constexpr uint8 kUnknownRank = 255; variable
286 return kIsPartial && ndims_byte() == kUnknownRank; in unknown_rank()
293 return kIsPartial && dims == kUnknownRank ? -1 : dims; in dims()
Dshape_inference.cc30 constexpr int32_t InferenceContext::kUnknownRank; member in tensorflow::shape_inference::InferenceContext
263 if (rank == kUnknownRank) return UnknownDim(); in NumElements()
325 if (existing == kUnknownRank) { in WithRank()
346 if (existing >= rank || existing == kUnknownRank) { in WithRankAtLeast()
361 if (existing <= rank || existing == kUnknownRank) { in WithRankAtMost()
702 if (rank == kUnknownRank) { in UnknownShapeOfRank()
Dtensor_shape.cc146 set_ndims_byte(kUnknownRank); in TensorShapeBase()
166 out->set_ndims_byte(kUnknownRank); in BuildTensorShapeBase()
302 set_ndims_byte(kUnknownRank); in TensorShapeBase()
Dcommon_shape_fns.cc916 if (c->Rank(specified_input_grad_shape) == InferenceContext::kUnknownRank) { in Conv2DBackpropInputShape()
1986 int32_t rank = InferenceContext::kUnknownRank; in ConcatShapeHelper()
1988 if (rank == InferenceContext::kUnknownRank) rank = c->Rank(c->input(i)); in ConcatShapeHelper()
1989 if (rank != InferenceContext::kUnknownRank) { in ConcatShapeHelper()
1993 if (rank == InferenceContext::kUnknownRank) { in ConcatShapeHelper()
Dshape_inference_test.cc290 EXPECT_EQ(InferenceContext::kUnknownRank, c.Rank(in0)); in TEST_F()
/external/tensorflow/tensorflow/security/advisory/
Dtfsa-2022-002.md41 if (!s.Handle() || s->rank_ == kUnknownRank) {
48 CHECK_NE(s->rank_, kUnknownRank);
/external/tensorflow/tensorflow/c/eager/
Dc_api_unified_experimental_graph.cc50 auto& kUnknownRank = shape_inference::InferenceContext::kUnknownRank; variable
70 if (num_dims == kUnknownRank) { in Shape()
/external/tensorflow/tensorflow/c/
Dc_api_experimental.cc664 if (input_shape.num_dims == InferenceContext::kUnknownRank) { in TFE_InferShapes()
698 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
563 return kUnknownRank; in GetFanoutPortRank()