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

Method Execute

tensorflow/compiler/xla/service/hlo_runner.cc:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141StatusOr<Literal> HloRunner::Execute(std::unique_ptr<HloModule> module,
142 absl::Span<const Literal* const> arguments,
143 bool run_hlo_passes,
144 ExecutionProfile* profile) {
145 TF_ASSIGN_OR_RETURN(std::vector<ScopedShapedBuffer> argument_buffers,
146 TransferLiteralsToDevice(arguments));
147 TF_ASSIGN_OR_RETURN(ScopedShapedBuffer result,
148 ExecuteWithDeviceBuffers(
149 /*module=*/std::move(module),
150 /*arguments=*/argument_buffers,
151 /*run_hlo_passes=*/run_hlo_passes,
152 /*profile=*/profile));
153 return TransferLiteralFromDevice(result);
154}
155
156StatusOr<Literal> HloRunner::Execute(std::unique_ptr<HloModule> module,
157 absl::Span<const Literal> arguments,

Callers

nothing calls this directly

Calls 5

TF_ASSIGN_OR_RETURNFunction · 0.70
ExecuteFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected