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

Function MakeFakeArgumentsOrDie

tensorflow/compiler/xla/client/lib/testing.cc:97–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97std::vector<std::unique_ptr<GlobalData>> MakeFakeArgumentsOrDie(
98 const XlaComputation& computation, Client* client,
99 DebugOptions* debug_opts /*=nullptr*/) {
100 CHECK(computation.proto().has_host_program_shape())
101 << "Computation should have program shape.";
102 auto program_shape = computation.proto().host_program_shape();
103
104 std::vector<std::unique_ptr<GlobalData>> results;
105 for (const ShapeProto& shape : program_shape.parameters()) {
106 results.push_back(MakeFakeDataOrDie(Shape(shape), client, debug_opts));
107 }
108 return results;
109}
110
111} // namespace xla

Callers 1

ReplayComputationFunction · 0.85

Calls 5

MakeFakeDataOrDieFunction · 0.85
protoMethod · 0.80
ShapeFunction · 0.50
parametersMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected