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

Method GetOperands

tensorflow/compiler/mlir/xla/hlo_function_importer.cc:688–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688StatusOr<llvm::SmallVector<mlir::Value, 4>> HloFunctionImporter::GetOperands(
689 HloInstruction* instruction) {
690 llvm::SmallVector<mlir::Value, 4> operands;
691 for (const auto& operand : instruction->operands()) {
692 auto input_it = instruction_value_map_.find(operand);
693 if (input_it == instruction_value_map_.end()) {
694 return tensorflow::errors::Internal(
695 absl::StrCat("Could not find input value: ", operand->name(),
696 " for instruction ", instruction->name()));
697 }
698 operands.push_back(input_it->second);
699 }
700 return operands;
701}
702
703tensorflow::Status HloFunctionImporter::GetMlirTypes(
704 const std::vector<HloInstruction*>& instructions,

Callers

nothing calls this directly

Calls 7

InternalFunction · 0.85
nameMethod · 0.65
StrCatFunction · 0.50
operandsMethod · 0.45
findMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected