| 310 | } |
| 311 | |
| 312 | Status ShapeVerifier::CheckIsTokenOperand(const HloInstruction* instruction, |
| 313 | int64 operand_no) { |
| 314 | const HloInstruction* token = instruction->operand(operand_no); |
| 315 | if (!ShapeUtil::Equal(token->shape(), ShapeUtil::MakeTokenShape())) { |
| 316 | return InternalError( |
| 317 | "Expected operand %d to be token-shaped, actual shape is " |
| 318 | "%s:\n%s", |
| 319 | operand_no, StringifyShape(token->shape()), instruction->ToString()); |
| 320 | } |
| 321 | return Status::OK(); |
| 322 | } |
| 323 | |
| 324 | Status ShapeVerifier::CheckOperandAndParameter( |
| 325 | const HloInstruction* instruction, int64 operand_number, |
nothing calls this directly
no test coverage detected