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

Function AllOperandsAreParameters

tensorflow/compiler/xla/service/hlo_query.cc:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool AllOperandsAreParameters(const HloInstruction& instruction) {
48 for (const auto& operand : instruction.operands()) {
49 if (operand->opcode() != HloOpcode::kParameter) {
50 return false;
51 }
52 }
53 return true;
54}
55
56bool AllOperandsAreConstants(const HloInstruction& instruction) {
57 for (const auto& operand : instruction.operands()) {

Callers 1

HandleMapMethod · 0.85

Calls 2

opcodeMethod · 0.80
operandsMethod · 0.45

Tested by

no test coverage detected