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

Function IsAll

tensorflow/compiler/xla/service/algebraic_simplifier.cc:72–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70namespace m = match;
71
72bool IsAll(const HloInstruction* op, int8 value) {
73 switch (op->opcode()) {
74 case HloOpcode::kBroadcast:
75 return IsAll(op->operand(0), value);
76 case HloOpcode::kConstant:
77 return op->literal().IsAll(value);
78 default:
79 return false;
80 }
81}
82
83bool IsAnyOperandComplex(const HloInstruction* hlo) {
84 for (auto operand : hlo->operands()) {

Callers 12

HandleAddMethod · 0.70
HandleAndMethod · 0.70
HandleSubtractMethod · 0.70
HandleDivideMethod · 0.70
HandleMultiplyMethod · 0.70
HandleOrMethod · 0.70
HandleCompareMethod · 0.70
HandlePowerMethod · 0.70
HandleRsqrtMethod · 0.70
HandleSelectMethod · 0.70
FoldConvInputPadMethod · 0.70
FoldConvFilterPadMethod · 0.70

Calls 4

opcodeMethod · 0.80
IsAllMethod · 0.80
operandMethod · 0.45
literalMethod · 0.45

Tested by

no test coverage detected