Caffe2 - C++ API
A deep learning, cross platform ML framework
script_type_parser.h
1 #pragma once
2 #include <ATen/core/jit_type.h>
3 #include <torch/csrc/WindowsTorchApiMacro.h>
4 #include <torch/csrc/jit/script/parser.h>
5 
6 namespace torch {
7 namespace jit {
8 namespace script {
9 struct Expr;
10 TORCH_API c10::optional<std::string> parseBaseTypeName(const Expr& expr);
11 TORCH_API c10::TypePtr parseTypeFromExpr(const Expr& expr);
12 TORCH_API c10::optional<std::pair<c10::TypePtr, int32_t>> parseBroadcastList(
13  const Expr& expr);
14 TORCH_API c10::TypePtr parseType(const std::string& str);
15 } // namespace script
16 } // namespace jit
17 } // namespace torch
Definition: jit_type.h:17