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

Method Import

tensorflow/compiler/mlir/xla/hlo_module_importer.cc:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace xla {
32
33Status HloModuleImporter::Import(const xla::HloModule& module) {
34 // TODO(hinsu): Only import the entry computation here once all HLO ops with
35 // reference to other computation are updated to have a region instead of a
36 // function attribute.
37 for (const auto& computation : module.computations()) {
38 auto result = HloFunctionImporter::ImportFunction(
39 module_, &builder_, &function_map_, computation);
40 TF_RETURN_IF_ERROR(result.status());
41 }
42
43 return Status::OK();
44}
45
46Status HloModuleImporter::Import(const xla::HloModuleProto& module_proto) {
47 xla::DebugOptions debug_options;

Callers 1

ConvertHloToMlirHloFunction · 0.45

Calls 3

computationsMethod · 0.80
ImportFunction · 0.50
statusMethod · 0.45

Tested by

no test coverage detected