MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ExpectArray

Function ExpectArray

tensorflow/compiler/xla/service/shape_inference.cc:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52Status ExpectArray(const Shape& shape, absl::string_view op_type) {
53 if (!shape.IsArray()) {
54 return InvalidArgument("Expected array argument for %s, but got %s.",
55 string(op_type), ShapeUtil::HumanString(shape));
56 }
57 return Status::OK();
58}
59
60Status VerifyReducerShape(const ProgramShape& reducer_shape,
61 absl::Span<const Shape* const> init_value_shapes,

Callers 15

InferUnaryOpShapeMethod · 0.85
InferConcatOpShapeMethod · 0.85
InferDotOpShapeMethod · 0.85
InferBinaryOpShapeMethod · 0.85
InferMapShapeMethod · 0.85
InferSoftmaxShapeMethod · 0.85
InferConvolveShapeMethod · 0.85
InferAllReduceShapeMethod · 0.85

Calls 2

InvalidArgumentFunction · 0.85
IsArrayMethod · 0.45

Tested by

no test coverage detected