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

Method MakeProgramShape

tensorflow/compiler/xla/shape_util.cc:164–172  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

162}
163
164/* static */ ProgramShape ShapeUtil::MakeProgramShape(
165 std::initializer_list<Shape> parameters, Shape result) {
166 ProgramShape program_shape;
167 for (const Shape& shape : parameters) {
168 *program_shape.add_parameters() = shape;
169 }
170 *program_shape.mutable_result() = std::move(result);
171 return program_shape;
172}
173
174/* static */ Shape ShapeUtil::MakeShape(PrimitiveType element_type,
175 absl::Span<const int64> dimensions) {

Callers

nothing calls this directly

Calls 2

add_parametersMethod · 0.80
mutable_resultMethod · 0.80

Tested by

no test coverage detected