Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Dnn::TensorTrait< half > Struct Reference

Specialization of TensorTrait for half-precision float type. More...

Static Public Attributes

static constexpr bool is_float_type = true
 
static constexpr bool is_integer_type = false
 
static constexpr bool is_supported = true
 
static constexpr size_t size_in_bytes = sizeof( half )
 
static constexpr std::string_view type_name = "FP16"
 

Detailed Description

Specialization of TensorTrait for half-precision float type.

Member Data Documentation

◆ is_float_type

constexpr bool Mila::Dnn::TensorTrait< half >::is_float_type = true
staticconstexpr

◆ is_integer_type

constexpr bool Mila::Dnn::TensorTrait< half >::is_integer_type = false
staticconstexpr

◆ is_supported

constexpr bool Mila::Dnn::TensorTrait< half >::is_supported = true
staticconstexpr

◆ size_in_bytes

constexpr size_t Mila::Dnn::TensorTrait< half >::size_in_bytes = sizeof( half )
staticconstexpr

◆ type_name

constexpr std::string_view Mila::Dnn::TensorTrait< half >::type_name = "FP16"
staticconstexpr

The documentation for this struct was generated from the following file: