Rate this Page

Program Listing for File jit.h#

Return to documentation for file (torch/csrc/api/include/torch/jit.h)

#pragma once

#include <torch/csrc/Export.h>
#include <torch/csrc/jit/api/module.h>

#include <memory>
#include <string>

namespace torch::jit {

TORCH_API std::shared_ptr<CompilationUnit> compile(const std::string& source);

} // namespace torch::jit