static */
| 1442 | } |
| 1443 | |
| 1444 | /* static */ std::unique_ptr<HloInstruction> HloInstruction::CreateCall( |
| 1445 | const Shape& shape, absl::Span<HloInstruction* const> operands, |
| 1446 | HloComputation* computation) { |
| 1447 | std::unique_ptr<HloInstruction> instruction = |
| 1448 | absl::WrapUnique(new HloInstruction(HloOpcode::kCall, shape)); |
| 1449 | for (auto operand : operands) { |
| 1450 | instruction->AppendOperand(operand); |
| 1451 | } |
| 1452 | instruction->called_computations_.push_back(computation); |
| 1453 | return instruction; |
| 1454 | } |
| 1455 | |
| 1456 | /* static */ std::unique_ptr<HloInstruction> HloInstruction::CreateCustomCall( |
| 1457 | const Shape& shape, absl::Span<HloInstruction* const> operands, |
no test coverage detected