|
InfiniOps
Operator Library for Accelerators
|
Namespaces | |
| namespace | detail |
| namespace | fft |
| namespace | internal |
| namespace | linalg |
| namespace | special |
Typedefs | |
| using | Tensor = infini::rt::TensorView |
| using | Device = infini::rt::Device |
| template<Device::Type device_type> | |
| using | DeviceEnabled = infini::rt::DeviceEnabled< device_type > |
| using | AllDeviceTypes = List< Device::Type::kCpu, Device::Type::kNvidia, Device::Type::kCambricon, Device::Type::kAscend, Device::Type::kMetax, Device::Type::kMoore, Device::Type::kIluvatar, Device::Type::kHygon, Device::Type::kMars, Device::Type::kThead > |
| template<typename T > | |
| using | ActiveDevices = typename ActiveDevicesImpl< T >::type |
| template<Device::Type dev, DataType dtype> | |
| using | TypeMap = infini::rt::TypeMap< dev, dtype > |
| template<Device::Type dev, DataType dtype> | |
| using | TypeMapType = infini::rt::TypeMapType< dev, dtype > |
| using | FloatTypes = List< DataType::kFloat32, DataType::kFloat64 > |
| using | ReducedFloatTypes = List< DataType::kFloat16, DataType::kBFloat16 > |
| using | IntTypes = List< DataType::kInt8, DataType::kInt16, DataType::kInt32, DataType::kInt64 > |
| using | UIntTypes = List< DataType::kUInt8, DataType::kUInt16, DataType::kUInt32, DataType::kUInt64 > |
| using | BitTypes8 = List< DataType::kInt8, DataType::kUInt8 > |
| using | BitTypes16 = List< DataType::kInt16, DataType::kUInt16, DataType::kFloat16, DataType::kBFloat16 > |
| using | BitTypes32 = List< DataType::kInt32, DataType::kUInt32, DataType::kFloat32 > |
| using | BitTypes64 = List< DataType::kInt64, DataType::kUInt64, DataType::kFloat64 > |
| using | AllFloatTypes = ConcatType< FloatTypes, ReducedFloatTypes > |
| using | AllIntTypes = ConcatType< IntTypes, UIntTypes > |
| using | AllTypes = ConcatType< AllFloatTypes, AllIntTypes > |
| using | ReluDataTypes = ConcatType< ConcatType< AllFloatTypes, IntTypes >, List< DataType::kUInt8 > > |
Functions | |
| template void | Tensor (const Tensor &input, const Tensor &weight, const std::optional< Tensor > &bias, const Tensor &out) const |
| template void | Tensor (const Tensor &logits, const std::optional< Tensor > &k, const std::optional< Tensor > &p, const Tensor &out) const |
| template void | Tensor (const Tensor &logits, const std::optional< Tensor > &k, const std::optional< Tensor > &p, const uint64_t &seed, const uint64_t &offset, const Tensor &out) const |
| template void | Tensor (const Tensor &logits, const Tensor &top_k, const Tensor &top_p, const std::optional< Tensor > &indices, const std::string &filter_apply_order, const bool &deterministic, const bool &check_nan, const std::optional< int64_t > &seed, const std::optional< int64_t > &offset, const Tensor &out) const |
| template void | Tensor (const Tensor &a, const Tensor &b, const std::optional< Tensor > &c, const std::optional< float > &alpha, const std::optional< float > &beta, const std::optional< int > &trans_a, const std::optional< int > &trans_b, const Tensor &y) const |
| template<typename ValueType , ValueType... all_values, typename Functor , typename... Args> | |
| auto | DispatchFunc (ValueType value, Functor &&func, std::string_view context_str="", Args &&... args) |
| template<typename Functor , typename... Args, auto... items> | |
| auto | DispatchFunc (const std::vector< int64_t > &values, size_t, Functor &&func, std::string_view, List< items... >, Args &&... args) |
| template<typename FirstList , typename... RestLists, typename Functor , typename... Args, auto... items> | |
| auto | DispatchFunc (const std::vector< int64_t > &values, size_t index, Functor &&func, std::string_view context_str, List< items... >, Args &&... args) |
| template<typename RestListsPack , typename Functor , typename... Args, auto... items, auto... allowed> | |
| auto | MultiDispatchFirstDim (const std::vector< int64_t > &values, size_t index, Functor &func, std::string_view context_str, List< items... >, List< allowed... >, Args &&... args) |
| template<Device::Type kDev, DataType... allowed_dtypes, typename Functor , typename... Args> | |
| auto | DispatchFunc (DataType dtype, Functor &&func, std::string_view context_str="", Args &&... args) |
| template<Device::Type kDev, typename... Lists, typename Functor , typename... Args> | |
| auto | DispatchFunc (std::initializer_list< DataType > dtypes, Functor &&func, std::string_view context_str="", Args &&... args) |
| template<auto... allowed_devices, typename Functor , typename... Args> | |
| auto | DispatchFunc (Device::Type device, Functor &&func, std::string_view context_str="", Args &&... args) |
| template<typename... Lists, typename Functor , typename... Args> | |
| auto | DispatchFunc (std::initializer_list< Device::Type > devices, Functor &&func, std::string_view context_str="", Args &&... args) |
| template<typename ValueType , typename Functor , typename... Args, auto... items> | |
| auto | DispatchFuncListAliasImpl (ValueType value, Functor &&func, std::string_view context_str, List< items... >, Args &&... args) |
| template<Device::Type kDev, typename ValueType , typename Functor , typename... Args, auto... items> | |
| auto | DispatchFuncListAliasImpl (ValueType value, Functor &&func, std::string_view context_str, List< items... >, Args &&... args) |
| template<typename ListType , typename ValueType , typename Functor , typename... Args, typename = std::enable_if_t<IsListType<ListType>::value>> | |
| auto | DispatchFunc (ValueType value, Functor &&func, std::string_view context_str="", Args &&... args) |
| template<Device::Type kDev, typename ListType , typename ValueType , typename Functor , typename... Args, typename = std::enable_if_t<IsListType<ListType>::value>> | |
| auto | DispatchFunc (ValueType value, Functor &&func, std::string_view context_str="", Args &&... args) |
| template<typename... Lists, typename Functor , typename... Args> | |
| auto | DispatchFunc (std::initializer_list< int64_t > keys, Functor &&func, std::string_view context_str="", Args &&... args) |
Variables | |
| constexpr std::size_t | kMaxImplementations = 32 |
| template void | uint64_t |
| template void | bool |
| template<Device::Type dev, typename T > | |
| constexpr bool | IsBFloat16 = infini::rt::IsBFloat16<dev, T> |
| template<Device::Type dev, typename T > | |
| constexpr bool | IsFP16 = infini::rt::IsFP16<dev, T> |
| using infini::ops::ActiveDevices = typedef typename ActiveDevicesImpl<T>::type |
| using infini::ops::AllDeviceTypes = typedef List<Device::Type::kCpu, Device::Type::kNvidia, Device::Type::kCambricon, Device::Type::kAscend, Device::Type::kMetax, Device::Type::kMoore, Device::Type::kIluvatar, Device::Type::kHygon, Device::Type::kMars, Device::Type::kThead> |
| using infini::ops::AllFloatTypes = typedef ConcatType<FloatTypes, ReducedFloatTypes> |
| using infini::ops::AllIntTypes = typedef ConcatType<IntTypes, UIntTypes> |
| using infini::ops::AllTypes = typedef ConcatType<AllFloatTypes, AllIntTypes> |
| using infini::ops::BitTypes16 = typedef List<DataType::kInt16, DataType::kUInt16, DataType::kFloat16, DataType::kBFloat16> |
| using infini::ops::BitTypes32 = typedef List<DataType::kInt32, DataType::kUInt32, DataType::kFloat32> |
| using infini::ops::BitTypes64 = typedef List<DataType::kInt64, DataType::kUInt64, DataType::kFloat64> |
| using infini::ops::BitTypes8 = typedef List<DataType::kInt8, DataType::kUInt8> |
| using infini::ops::Device = typedef infini::rt::Device |
| using infini::ops::DeviceEnabled = typedef infini::rt::DeviceEnabled<device_type> |
| using infini::ops::FloatTypes = typedef List<DataType::kFloat32, DataType::kFloat64> |
| using infini::ops::IntTypes = typedef List<DataType::kInt8, DataType::kInt16, DataType::kInt32, DataType::kInt64> |
| using infini::ops::ReducedFloatTypes = typedef List<DataType::kFloat16, DataType::kBFloat16> |
| using infini::ops::ReluDataTypes = typedef ConcatType<ConcatType<AllFloatTypes, IntTypes>, List<DataType::kUInt8> > |
| template void infini::ops::Tensor |
| using infini::ops::TypeMap = typedef infini::rt::TypeMap<dev, dtype> |
| using infini::ops::TypeMapType = typedef infini::rt::TypeMapType<dev, dtype> |
| using infini::ops::UIntTypes = typedef List<DataType::kUInt8, DataType::kUInt16, DataType::kUInt32, DataType::kUInt64> |
| auto infini::ops::DispatchFunc | ( | const std::vector< int64_t > & | values, |
| size_t | index, | ||
| Functor && | func, | ||
| std::string_view | context_str, | ||
| List< items... > | , | ||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | const std::vector< int64_t > & | values, |
| size_t | , | ||
| Functor && | func, | ||
| std::string_view | , | ||
| List< items... > | , | ||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | DataType | dtype, |
| Functor && | func, | ||
| std::string_view | context_str = "", |
||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | Device::Type | device, |
| Functor && | func, | ||
| std::string_view | context_str = "", |
||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | std::initializer_list< DataType > | dtypes, |
| Functor && | func, | ||
| std::string_view | context_str = "", |
||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | std::initializer_list< Device::Type > | devices, |
| Functor && | func, | ||
| std::string_view | context_str = "", |
||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | std::initializer_list< int64_t > | keys, |
| Functor && | func, | ||
| std::string_view | context_str = "", |
||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | ValueType | value, |
| Functor && | func, | ||
| std::string_view | context_str = "", |
||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | ValueType | value, |
| Functor && | func, | ||
| std::string_view | context_str = "", |
||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFunc | ( | ValueType | value, |
| Functor && | func, | ||
| std::string_view | context_str = "", |
||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFuncListAliasImpl | ( | ValueType | value, |
| Functor && | func, | ||
| std::string_view | context_str, | ||
| List< items... > | , | ||
| Args &&... | args | ||
| ) |
| auto infini::ops::DispatchFuncListAliasImpl | ( | ValueType | value, |
| Functor && | func, | ||
| std::string_view | context_str, | ||
| List< items... > | , | ||
| Args &&... | args | ||
| ) |
| auto infini::ops::MultiDispatchFirstDim | ( | const std::vector< int64_t > & | values, |
| size_t | index, | ||
| Functor & | func, | ||
| std::string_view | context_str, | ||
| List< items... > | , | ||
| List< allowed... > | , | ||
| Args &&... | args | ||
| ) |
| template void infini::ops::Tensor | ( | const Tensor & | a, |
| const Tensor & | b, | ||
| const std::optional< Tensor > & | c, | ||
| const std::optional< float > & | alpha, | ||
| const std::optional< float > & | beta, | ||
| const std::optional< int > & | trans_a, | ||
| const std::optional< int > & | trans_b, | ||
| const Tensor & | y | ||
| ) | const |
| template void infini::ops::Tensor | ( | const Tensor & | input, |
| const Tensor & | weight, | ||
| const std::optional< Tensor > & | bias, | ||
| const Tensor & | out | ||
| ) | const |
| template void infini::ops::Tensor | ( | const Tensor & | logits, |
| const std::optional< Tensor > & | k, | ||
| const std::optional< Tensor > & | p, | ||
| const Tensor & | out | ||
| ) | const |
| template void infini::ops::Tensor | ( | const Tensor & | logits, |
| const std::optional< Tensor > & | k, | ||
| const std::optional< Tensor > & | p, | ||
| const uint64_t & | seed, | ||
| const uint64_t & | offset, | ||
| const Tensor & | out | ||
| ) | const |
| template void infini::ops::Tensor | ( | const Tensor & | logits, |
| const Tensor & | top_k, | ||
| const Tensor & | top_p, | ||
| const std::optional< Tensor > & | indices, | ||
| const std::string & | filter_apply_order, | ||
| const bool & | deterministic, | ||
| const bool & | check_nan, | ||
| const std::optional< int64_t > & | seed, | ||
| const std::optional< int64_t > & | offset, | ||
| const Tensor & | out | ||
| ) | const |
| template void infini::ops::bool |
|
inlineconstexpr |
|
inlineconstexpr |
|
constexpr |
| template void infini::ops::uint64_t |