static */
| 1174 | } |
| 1175 | |
| 1176 | /* static */ std::unique_ptr<HloInstruction> HloInstruction::CreateBitcast( |
| 1177 | const Shape& shape, HloInstruction* operand) { |
| 1178 | auto instruction = |
| 1179 | absl::WrapUnique(new HloInstruction(HloOpcode::kBitcast, shape)); |
| 1180 | instruction->AppendOperand(operand); |
| 1181 | return instruction; |
| 1182 | } |
| 1183 | |
| 1184 | /* static */ std::unique_ptr<HloInstruction> HloInstruction::CreateReduce( |
| 1185 | const Shape& shape, HloInstruction* operand, HloInstruction* init_value, |
nothing calls this directly
no test coverage detected