23 #ifndef FTL_TENSOR_TRAITS_HPP
24 #define FTL_TENSOR_TRAITS_HPP
34 static constexpr
device CPU = 0;
35 static constexpr
device GPU = 1;
47 template <
typename Dtype,
device DeviceType,
size_t... DimSizes>
51 template <
typename Dtype,
device DeviceType,
size_t SizeFirst,
size_t... SizeRest>
60 static constexpr
device device_type = DeviceType;
64 template <
typename Dtype, device DeviceType>
73 static constexpr
device device_type = DeviceType;
77 #endif // FTL_TENSOR_TRAITS_HPP
typename data_container::size_type size_type
Definition: tensor_container.hpp:122
typename container_type::data_container data_container
Definition: tensor_traits.hpp:69
typename container_type::size_type size_type
Definition: tensor_traits.hpp:58
std::vector< size_type > dim_container
Definition: tensor_container.hpp:123
Container for tensor data depending on if the tensor is static (dimension sizes, and hence the total ...
Definition: tensor_container.hpp:42
Dtype data_type
Definition: tensor_traits.hpp:67
Definition: mapper.hpp:37
typename container_type::size_type size_type
Definition: tensor_traits.hpp:71
Dtype data_type
Definition: tensor_traits.hpp:54
typename nano::runtime_converter< dimension_sizes >::array_type dim_container
Definition: tensor_container.hpp:53
Definition: tensor_container.hpp:46
short device
Definition: tensor_traits.hpp:32
Definition: tensor_container.hpp:117
typename container_type::dim_container dim_container
Definition: tensor_traits.hpp:70
typename data_container::size_type size_type
Definition: tensor_container.hpp:54
std::array< data_type, dimension_product::result > data_container
Definition: tensor_container.hpp:52
std::vector< data_type > data_container
Definition: tensor_container.hpp:121
typename container_type::data_container data_container
Definition: tensor_traits.hpp:56
typename container_type::dim_container dim_container
Definition: tensor_traits.hpp:57
Traits class which specifies parameters for a tensor, such as what type of container it uses and what...
Definition: tensor_traits.hpp:48