Caffe2 - C++ API
A deep learning, cross platform ML framework
tensor_types.h
1 #pragma once
2 
3 #include <ATen/ATen.h>
4 #include <utility>
5 #include <vector>
6 
7 namespace torch { namespace utils {
8 
9 std::string type_to_string(const at::Type& type);
10 at::Type& type_from_string(const std::string& str);
11 
12 // return a vector of all "declared" types, even those that weren't compiled
13 std::vector<std::pair<at::Backend, at::ScalarType>> all_declared_types();
14 
15 }} // namespace torch::utils
Definition: jit_type.h:17