struct ov::util::Cast

Overview

Transform tensor data by cast them to type T. More…

#include <shape_infer_type_utils.hpp>

template <class T>
struct Cast
{
    // methods

    template <
        class U,
        typename std::enable_if<std::is_integral<T>::value&&std::is_floating_point<U>::value>::type \* = nullptr
        >
    constexpr T operator () (const U u) const;
};

Detailed Documentation

Transform tensor data by cast them to type T.

Parameters:

T

Type of returned value.