• Docs >
  • Library API >
  • Function torch::jit::import_ir_module(std::shared_ptr<CompilationUnit>, const std::string&, std::optional<c10::Device>, bool)
  • Edit on GitHub
Shortcuts

Function torch::jit::import_ir_module(std::shared_ptr<CompilationUnit>, const std::string&, std::optional<c10::Device>, bool)

Function Documentation

Module torch::jit::import_ir_module(std::shared_ptr<CompilationUnit> cu, const std::string &filename, std::optional<c10::Device> device = std::nullopt, bool load_debug_files = true)

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources