| 139 | } |
| 140 | |
| 141 | StatusOr<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 | |
| 156 | StatusOr<Literal> HloRunner::Execute(std::unique_ptr<HloModule> module, |
| 157 | absl::Span<const Literal> arguments, |
nothing calls this directly
no test coverage detected