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

Method CreateCall

tensorflow/compiler/xla/service/hlo_instruction.cc:1444–1454  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

1442}
1443
1444/* static */ std::unique_ptr<HloInstruction> HloInstruction::CreateCall(
1445 const Shape& shape, absl::Span<HloInstruction* const> operands,
1446 HloComputation* computation) {
1447 std::unique_ptr<HloInstruction> instruction =
1448 absl::WrapUnique(new HloInstruction(HloOpcode::kCall, shape));
1449 for (auto operand : operands) {
1450 instruction->AppendOperand(operand);
1451 }
1452 instruction->called_computations_.push_back(computation);
1453 return instruction;
1454}
1455
1456/* static */ std::unique_ptr<HloInstruction> HloInstruction::CreateCustomCall(
1457 const Shape& shape, absl::Span<HloInstruction* const> operands,

Callers 14

CallMethod · 0.45
EmitCallToIntrinsicFunction · 0.45
EmitLoggingFunction · 0.45
EmitPrintfFunction · 0.45
EmitAMDGPUShflDownFunction · 0.45
EmitNVPTXShflDownFunction · 0.45
EmitDeviceFunctionCallFunction · 0.45
EmitCallToRuntimeMethod · 0.45
ReadCycleCounterMethod · 0.45

Calls 3

WrapUniqueFunction · 0.85
AppendOperandMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected