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

Method CheckIsTokenOperand

tensorflow/compiler/xla/service/hlo_verifier.cc:312–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312Status 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
324Status ShapeVerifier::CheckOperandAndParameter(
325 const HloInstruction* instruction, int64 operand_number,

Callers

nothing calls this directly

Calls 6

StringifyShapeFunction · 0.85
EqualClass · 0.50
InternalErrorFunction · 0.50
operandMethod · 0.45
shapeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected