类 | |
| struct | Attribute |
| Attribute public API. 更多... | |
| class | ByteStorage |
| ByteStorage public API. 更多... | |
| struct | CompiledProgram |
| CompiledProgram public API. 更多... | |
| class | CompilerQueue |
| CompilerQueue public API. 更多... | |
| struct | Failure |
| Failure public API. 更多... | |
| struct | Input |
| Input public API. 更多... | |
| struct | ModelData |
| ModelData public API. 更多... | |
| struct | Node |
| Node public API. 更多... | |
| struct | RuntimeTensor |
| RuntimeTensor public API. 更多... | |
函数 | |
| bool | isSupported (const Node &node) |
| True when supported. | |
| std::vector< RuntimeTensor > | execute (const Node &node, const std::vector< const RuntimeTensor * > &inputs, OnnxCompute *compute=nullptr) |
| Execute. | |
| std::vector< int32_t > | gpuMatmul (OnnxCompute &device, affine::ByteView a, affine::ByteView b, size_t m, size_t k, size_t n, int az, std::span< const int32_t > bz) |
| Gpu matmul. | |
| std::vector< int32_t > | gpuConv (OnnxCompute &device, affine::ByteView x, affine::ByteView w, const affine::ConvShape &s, int xz, std::span< const int32_t > wz) |
| Gpu conv. | |
| OnnxBuffer | enqueueInteger (OnnxCompute &d, const std::string &source, OnnxBuffer a, OnnxBuffer b, std::span< const int32_t > z, size_t size, size_t terms) |
| OnnxBuffer | gpuMatmulResident (OnnxCompute &, OnnxBuffer, OnnxBuffer, bool, bool, size_t, size_t, size_t, int, std::span< const int32_t >, size_t bOffset=0) |
| Gpu matmul resident. | |
| OnnxBuffer | gpuConvResident (OnnxCompute &, OnnxBuffer, OnnxBuffer, bool, bool, const affine::ConvShape &, int, std::span< const int32_t >) |
| Gpu conv resident. | |
| std::optional< std::vector< RuntimeTensor > > | executeIndex (const Node &, const std::vector< const RuntimeTensor * > &) |
| Execute index. | |
| size_t | elementSize (OnnxElement e) |
| Element size. | |
| size_t | count (const std::vector< int64_t > &shape) |
| Returns the number of count. | |
| void | validate (const RuntimeTensor &v) |
| Validate. | |
| template<class T > | |
| T | read (const RuntimeTensor &v, size_t i) |
| Reads read. | |
| template<class T > | |
| RuntimeTensor | make (OnnxElement e, std::vector< int64_t > shape, const std::vector< T > &values) |
| Make. | |
| int64_t | integer (const RuntimeTensor &v, size_t i=0) |
| Integer. | |
| std::vector< float > | floats (const RuntimeTensor &v) |
| Floats. | |
| std::vector< int64_t > | ints (const RuntimeTensor &v) |
| Ints. | |
| int64_t | attr (const Node &n, const char *key, int64_t fallback) |
| Attr. | |
| std::vector< int64_t > | attrs (const Node &n, const char *key, std::vector< int64_t > fallback) |
| Attrs. | |
| const RuntimeTensor & | required (const std::vector< const RuntimeTensor * > &in, size_t i) |
| Required. | |
| int | axis (int64_t a, size_t rank) |
| Axis. | |
| std::vector< int64_t > | broadcast (const std::vector< int64_t > &a, const std::vector< int64_t > &b) |
| Broadcast. | |
| size_t | broadcastIndex (size_t i, const std::vector< int64_t > &shape, const std::vector< int64_t > &output) |
| Broadcast index. | |
| std::optional< RuntimeTensor > | executeShape (const Node &, const std::vector< const RuntimeTensor * > &) |
| Execute shape. | |
| RuntimeTensor | dispatchFloat (OnnxCompute &, const std::vector< const RuntimeTensor * > &, const std::vector< int64_t > &, const std::string &, size_t work=0) |
| Dispatches float. | |
| std::optional< RuntimeTensor > | executeMisc (const Node &, const std::vector< const RuntimeTensor * > &, OnnxCompute *) |
| Execute misc. | |
| std::optional< RuntimeTensor > | executeNeural (const Node &, const std::vector< const RuntimeTensor * > &, OnnxCompute *) |
| Execute neural. | |
| std::optional< RuntimeTensor > | executeNumeric (const Node &, const std::vector< const RuntimeTensor * > &, OnnxCompute *) |
| Execute numeric. | |
| std::vector< OnnxNamedTensor > | evaluate (const ModelData &, std::span< const OnnxNamedTensor >, const std::vector< std::string > &, OnnxCompute *, OnnxRunOptions options) |
| Evaluate. | |
| ModelData | parse (std::span< const uint8_t > bytes) |
| Parse. | |
| std::vector< RuntimeTensor > | executeQuant (const Node &node, const std::vector< const RuntimeTensor * > &inputs, OnnxCompute *compute=nullptr) |
| Execute quant. | |
| std::vector< RuntimeTensor > | executeQuantLstm (const Node &node, const std::vector< const RuntimeTensor * > &inputs, OnnxCompute *compute=nullptr) |
| Execute quant lstm. | |
函数说明
◆ attr()
|
inline |
Attr.
在文件 OnnxInternal.h 第 127 行定义.
被这些函数引用 execute(), executeIndex(), executeMisc(), executeNeural(), executeNumeric(), executeQuant(), executeQuantLstm() , 以及 executeShape().
◆ attrs()
|
inline |
Attrs.
在文件 OnnxInternal.h 第 132 行定义.
被这些函数引用 execute(), executeNeural(), executeNumeric() , 以及 executeQuant().
◆ axis()
|
inline |
Axis.
在文件 OnnxInternal.h 第 142 行定义.
引用了 a.
被这些函数引用 execute(), executeIndex(), executeMisc(), executeNumeric(), executeQuant() , 以及 executeShape().
◆ broadcast()
| std::vector< int64_t > eve::tensor::onnx_detail::broadcast | ( | const std::vector< int64_t > & | a, |
| const std::vector< int64_t > & | b | ||
| ) |
◆ broadcastIndex()
| size_t eve::tensor::onnx_detail::broadcastIndex | ( | size_t | i, |
| const std::vector< int64_t > & | shape, | ||
| const std::vector< int64_t > & | output | ||
| ) |
Broadcast index.
在文件 OnnxShapeOps.cpp 第 18 行定义.
引用了 d, index, output , 以及 shape.
被这些函数引用 executeNumeric() , 以及 executeShape().
◆ count()
|
inline |
◆ dispatchFloat()
| RuntimeTensor eve::tensor::onnx_detail::dispatchFloat | ( | OnnxCompute & | compute, |
| const std::vector< const RuntimeTensor * > & | inputs, | ||
| const std::vector< int64_t > & | shape, | ||
| const std::string & | body, | ||
| size_t | work = 0 |
||
| ) |
Dispatches float.
在文件 OnnxNumeric.cpp 第 33 行定义.
引用了 body, bytes, compute, count, element, eve::tensor::Float32, inputs, eve::tensor::Int32, eve::tensor::OnnxKernel::outputBytes, r, shape, eve::tensor::OnnxKernel::source, eve::Unsupported , 以及 eve::tensor::OnnxKernel::workItems.
被这些函数引用 execute(), executeMisc(), executeNeural(), executeNumeric() , 以及 executeQuant().
◆ elementSize()
|
inline |
Element size.
在文件 OnnxInternal.h 第 53 行定义.
引用了 eve::tensor::Bool, eve::tensor::Float32, eve::tensor::Int32, eve::tensor::Int64, eve::tensor::Int8, eve::tensor::UInt8 , 以及 eve::Unsupported.
被这些函数引用 execute(), executeIndex(), executeMisc(), executeShape() , 以及 validate().
◆ enqueueInteger()
| OnnxBuffer eve::tensor::onnx_detail::enqueueInteger | ( | OnnxCompute & | d, |
| const std::string & | source, | ||
| OnnxBuffer | a, | ||
| OnnxBuffer | b, | ||
| std::span< const int32_t > | z, | ||
| size_t | size, | ||
| size_t | terms | ||
| ) |
在文件 OnnxGpuKernels.cpp 第 52 行定义.
引用了 a, b, bytes, d, host, inputs, r, size, source, eve::Unsupported , 以及 z.
被这些函数引用 gpuConvResident() , 以及 gpuMatmulResident().
◆ evaluate()
| std::vector< OnnxNamedTensor > eve::tensor::onnx_detail::evaluate | ( | const ModelData & | model, |
| std::span< const OnnxNamedTensor > | feeds, | ||
| const std::vector< std::string > & | requested, | ||
| OnnxCompute * | compute, | ||
| OnnxRunOptions | options | ||
| ) |
◆ execute()
| std::vector< RuntimeTensor > eve::tensor::onnx_detail::execute | ( | const Node & | n, |
| const std::vector< const RuntimeTensor * > & | in, | ||
| OnnxCompute * | compute | ||
| ) |
Execute.
在文件 OnnxExecute.cpp 第 207 行定义.
引用了 a, eve::tensor::Abs, attr(), attrs(), axis(), begin, eve::tensor::Bool, compute, eve::tensor::Cos, count, dispatchFloat(), eve::tensor::onnx_detail::RuntimeTensor::element, elementSize(), end, executeIndex(), executeMisc(), executeNeural(), executeNumeric(), executeQuant(), executeQuantLstm(), executeShape(), eve::tensor::Exp, f, eve::tensor::Float32, floats(), idx, eve::tensor::Int32, eve::tensor::Int64, integer(), ints(), eve::tensor::Log, make(), n, eve::tensor::Neg, order, positions, eve::tensor::Relu, required, shape, eve::tensor::onnx_detail::RuntimeTensor::shape, eve::tensor::Sigmoid, eve::tensor::Sin, size, eve::tensor::kernels::softmax(), source, eve::tensor::Sqrt, eve::tensor::Tanh, target, eve::tensor::kernels::unaryOp(), eve::Unsupported, v , 以及 x.
◆ executeIndex()
| std::optional< std::vector< RuntimeTensor > > eve::tensor::onnx_detail::executeIndex | ( | const Node & | n, |
| const std::vector< const RuntimeTensor * > & | in | ||
| ) |
Execute index.
在文件 OnnxIndexOps.cpp 第 9 行定义.
引用了 a, aa, attr(), axis(), count, eve::tensor::onnx_detail::RuntimeTensor::element, elementSize(), end, eve::tensor::Float32, indices, eve::tensor::Int32, eve::tensor::Int64, integer(), length, make(), n, order, required, shape, size, start, step, t, v, values , 以及 x.
被这些函数引用 execute().
◆ executeMisc()
| std::optional< RuntimeTensor > eve::tensor::onnx_detail::executeMisc | ( | const Node & | n, |
| const std::vector< const RuntimeTensor * > & | in, | ||
| OnnxCompute * | compute | ||
| ) |
Execute misc.
在文件 OnnxMisc.cpp 第 7 行定义.
引用了 a, at, attr(), axis(), b, compute, count, dispatchFloat(), eve::tensor::onnx_detail::RuntimeTensor::element, element, elementSize(), f, eve::tensor::Float32, floats(), integer(), ints(), make(), n, p, required, s, shape, size, source, eve::Unsupported, v, width , 以及 x.
被这些函数引用 execute().
◆ executeNeural()
| std::optional< RuntimeTensor > eve::tensor::onnx_detail::executeNeural | ( | const Node & | n, |
| const std::vector< const RuntimeTensor * > & | in, | ||
| OnnxCompute * | compute | ||
| ) |
Execute neural.
在文件 OnnxNeural.cpp 第 7 行定义.
引用了 attr(), attrs(), bias, c, channels, compute, count, d, dispatchFloat(), eve::tensor::onnx_detail::RuntimeTensor::element, f, eve::tensor::Float32, floats(), groups, ints(), length, make(), n, offset, p, pos, position, required, s, scale, scales, shape, eve::tensor::onnx_detail::RuntimeTensor::shape, source, spatial, eve::Unsupported, v, w, width, x , 以及 z.
被这些函数引用 execute().
◆ executeNumeric()
| std::optional< RuntimeTensor > eve::tensor::onnx_detail::executeNumeric | ( | const Node & | n, |
| const std::vector< const RuntimeTensor * > & | in, | ||
| OnnxCompute * | compute | ||
| ) |
Execute numeric.
在文件 OnnxNumeric.cpp 第 61 行定义.
引用了 a, ab, attr(), attrs(), axis(), b, body, broadcast(), broadcastIndex(), c, channels, code, cols, compute, count, dispatchFloat(), eve::tensor::onnx_detail::RuntimeTensor::element, f, eve::tensor::Float32, floats(), ints(), literal, m, make(), n, offset, p, r, required, s, shape, eve::Unsupported, v , 以及 x.
被这些函数引用 execute().
◆ executeQuant()
| std::vector< RuntimeTensor > eve::tensor::onnx_detail::executeQuant | ( | const Node & | node, |
| const std::vector< const RuntimeTensor * > & | inputs, | ||
| OnnxCompute * | compute = nullptr |
||
| ) |
Execute quant.
在文件 OnnxQuant.cpp 第 28 行定义.
引用了 a, attr(), attrs(), axis(), b, eve::tensor::affine::ConvShape::batch, eve::tensor::onnx_detail::ByteStorage::buffer(), bytes, eve::tensor::onnx_detail::RuntimeTensor::bytes, bz, columns, compute, eve::tensor::affine::conv(), count, eve::tensor::affine::dequantize(), dispatchFloat(), eve::tensor::affine::dynamicQuantize(), eve::tensor::onnx_detail::RuntimeTensor::element, element, eve::tensor::Float32, floats(), gpuConvResident(), gpuMatmulResident(), input, inputs, eve::tensor::Int32, eve::tensor::Int8, integer(), ints(), make(), eve::tensor::affine::matmul(), n, params, q, eve::tensor::affine::quantize(), required, rows, s, scale, scales, shape, eve::tensor::onnx_detail::RuntimeTensor::shape, source, spatial, stats, type, eve::tensor::UInt8, eve::Unsupported, v, eve::tensor::affine::detail::validateConv(), values, w, wz, x, z , 以及 zeros.
被这些函数引用 execute().
◆ executeQuantLstm()
| std::vector< RuntimeTensor > eve::tensor::onnx_detail::executeQuantLstm | ( | const Node & | node, |
| const std::vector< const RuntimeTensor * > & | inputs, | ||
| OnnxCompute * | compute = nullptr |
||
| ) |
Execute quant lstm.
在文件 OnnxLstm.cpp 第 78 行定义.
引用了 attr(), b, c, clip, compute, count, d, direction, eve::tensor::affine::dynamicQuantize(), element, f, eve::tensor::Float32, floats(), g, gates, h, input, eve::tensor::Int32, ints(), make(), n, p, projected, qx, r, required, shape, state, step, t, time, w, x, y , 以及 z.
被这些函数引用 execute().
◆ executeShape()
| std::optional< RuntimeTensor > eve::tensor::onnx_detail::executeShape | ( | const Node & | n, |
| const std::vector< const RuntimeTensor * > & | in | ||
| ) |
Execute shape.
在文件 OnnxShapeOps.cpp 第 31 行定义.
引用了 a, attr(), axis(), b, begin, eve::tensor::Bool, broadcast(), broadcastIndex(), c, count, d, distance, eve::tensor::onnx_detail::RuntimeTensor::element, elementSize(), end, eve::tensor::Float32, eve::tensor::Int32, eve::tensor::Int64, integer(), ints(), make(), n, offset, required, shape, size, source, step, steps, t, u, v, value, x , 以及 y.
被这些函数引用 execute().
◆ floats()
|
inline |
Floats.
Out.
在文件 OnnxInternal.h 第 112 行定义.
引用了 count, eve::tensor::Float32 , 以及 v.
被这些函数引用 execute(), executeMisc(), executeNeural(), executeNumeric(), executeQuant() , 以及 executeQuantLstm().
◆ gpuConv()
| std::vector< int32_t > eve::tensor::onnx_detail::gpuConv | ( | OnnxCompute & | d, |
| affine::ByteView | x, | ||
| affine::ByteView | w, | ||
| const affine::ConvShape & | c, | ||
| int | xz, | ||
| std::span< const int32_t > | wz | ||
| ) |
Gpu conv.
在文件 OnnxGpuKernels.cpp 第 46 行定义.
引用了 c, d, gpuConvResident(), w, wz , 以及 x.
被这些函数引用 eve::tensor::affine::conv().
◆ gpuConvResident()
| OnnxBuffer eve::tensor::onnx_detail::gpuConvResident | ( | OnnxCompute & | d, |
| OnnxBuffer | x, | ||
| OnnxBuffer | w, | ||
| bool | xs, | ||
| bool | ws, | ||
| const affine::ConvShape & | c, | ||
| int | xz, | ||
| std::span< const int32_t > | wz | ||
| ) |
Gpu conv resident.
在文件 OnnxGpuKernels.cpp 第 75 行定义.
引用了 c, d, enqueueInteger(), s, size, eve::Unsupported, w, wz , 以及 x.
被这些函数引用 executeQuant() , 以及 gpuConv().
◆ gpuMatmul()
| std::vector< int32_t > eve::tensor::onnx_detail::gpuMatmul | ( | OnnxCompute & | d, |
| affine::ByteView | a, | ||
| affine::ByteView | b, | ||
| size_t | m, | ||
| size_t | k, | ||
| size_t | n, | ||
| int | az, | ||
| std::span< const int32_t > | bz | ||
| ) |
Gpu matmul.
在文件 OnnxGpuKernels.cpp 第 40 行定义.
引用了 a, az, b, bz, d, gpuMatmulResident(), m , 以及 n.
被这些函数引用 eve::tensor::affine::matmul().
◆ gpuMatmulResident()
| OnnxBuffer eve::tensor::onnx_detail::gpuMatmulResident | ( | OnnxCompute & | d, |
| OnnxBuffer | a, | ||
| OnnxBuffer | b, | ||
| bool | as, | ||
| bool | bs, | ||
| size_t | m, | ||
| size_t | k, | ||
| size_t | n, | ||
| int | az, | ||
| std::span< const int32_t > | bz, | ||
| size_t | bOffset | ||
| ) |
Gpu matmul resident.
在文件 OnnxGpuKernels.cpp 第 64 行定义.
引用了 a, az, b, bz, d, enqueueInteger(), m, n , 以及 s.
被这些函数引用 executeQuant() , 以及 gpuMatmul().
◆ integer()
|
inline |
Integer.
在文件 OnnxInternal.h 第 99 行定义.
引用了 eve::tensor::Bool, count, eve::tensor::Int32, eve::tensor::Int64, eve::tensor::Int8, eve::tensor::UInt8 , 以及 v.
被这些函数引用 execute(), executeIndex(), executeMisc(), executeQuant(), executeShape() , 以及 ints().
◆ ints()
|
inline |
Ints.
Out.
在文件 OnnxInternal.h 第 120 行定义.
被这些函数引用 execute(), executeMisc(), executeNeural(), executeNumeric(), executeQuant(), executeQuantLstm() , 以及 executeShape().
◆ isSupported()
| bool eve::tensor::onnx_detail::isSupported | ( | const Node & | n | ) |
◆ make()
| RuntimeTensor eve::tensor::onnx_detail::make | ( | OnnxElement | e, |
| std::vector< int64_t > | shape, | ||
| const std::vector< T > & | values | ||
| ) |
Make.
Validate.
在文件 OnnxInternal.h 第 91 行定义.
引用了 shape, v, validate() , 以及 values.
被这些函数引用 execute(), executeIndex(), executeMisc(), executeNeural(), executeNumeric(), executeQuant(), executeQuantLstm() , 以及 executeShape().
◆ parse()
| ModelData eve::tensor::onnx_detail::parse | ( | std::span< const uint8_t > | bytes | ) |
Parse.
在文件 OnnxReader.cpp 第 316 行定义.
引用了 a, bytes, f, g, graph, input, isSupported(), key, model, n, name, ops, eve::ParseError, r, root, t, eve::UnknownVersion, eve::Unsupported, v, wire , 以及 x.
被这些函数引用 eve::tensor::OnnxModel::load().
◆ read()
| T eve::tensor::onnx_detail::read | ( | const RuntimeTensor & | v, |
| size_t | i | ||
| ) |
◆ required()
|
inline |
Required.
在文件 OnnxInternal.h 第 137 行定义.
◆ validate()
|
inline |