TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
half_float::detail::expr Struct Reference

Temporary half-precision expression. More...

Collaboration diagram for half_float::detail::expr:

Public Member Functions

 expr (float f)
 Conversion constructor. More...
 
 operator float () const
 Conversion to single-precision. More...
 
 expr (float f)
 Conversion constructor. More...
 
 operator float () const
 Conversion to single-precision. More...
 

Private Attributes

float value_
 Internal expression value stored in single-precision. More...
 

Detailed Description

Temporary half-precision expression.

This class represents a half-precision expression which just stores a single-precision value internally.

Constructor & Destructor Documentation

◆ expr() [1/2]

half_float::detail::expr::expr ( float  f)
inlineexplicit

Conversion constructor.

Parameters
fsingle-precision value to convert

◆ expr() [2/2]

half_float::detail::expr::expr ( float  f)
inlineexplicit

Conversion constructor.

Parameters
fsingle-precision value to convert

Member Function Documentation

◆ operator float() [1/2]

half_float::detail::expr::operator float ( ) const
inline

Conversion to single-precision.

Returns
single precision value representing expression value

◆ operator float() [2/2]

half_float::detail::expr::operator float ( ) const
inline

Conversion to single-precision.

Returns
single precision value representing expression value

Member Data Documentation

◆ value_

float half_float::detail::expr::value_
private

Internal expression value stored in single-precision.


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