载入中...
搜索中...
未找到
OnnxExecute.cpp 文件参考
#include <algorithm>
#include <array>
#include <cmath>
#include <limits>
#include <numeric>
#include <set>
#include <sstream>
#include "tensor/AffineQuant.h"
#include "tensor/CpuKernels.h"
#include "tensor/OnnxGpuKernels.h"
#include "tensor/OnnxInternal.h"
#include "tensor/Tensor.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::tensor
 
namespace  eve::tensor::onnx_detail
 

函数

bool eve::tensor::onnx_detail::isSupported (const Node &node)
 True when supported.
 
std::vector< RuntimeTensor > eve::tensor::onnx_detail::execute (const Node &node, const std::vector< const RuntimeTensor * > &inputs, OnnxCompute *compute=nullptr)
 Execute.
 
std::vector< int32_t > eve::tensor::onnx_detail::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 > eve::tensor::onnx_detail::gpuConv (OnnxCompute &device, affine::ByteView x, affine::ByteView w, const affine::ConvShape &s, int xz, std::span< const int32_t > wz)
 Gpu conv.
 
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)
 
OnnxBuffer eve::tensor::onnx_detail::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 eve::tensor::onnx_detail::gpuConvResident (OnnxCompute &, OnnxBuffer, OnnxBuffer, bool, bool, const affine::ConvShape &, int, std::span< const int32_t >)
 Gpu conv resident.
 
std::optional< std::vector< RuntimeTensor > > eve::tensor::onnx_detail::executeIndex (const Node &, const std::vector< const RuntimeTensor * > &)
 Execute index.
 
std::vector< RuntimeTensor > eve::tensor::onnx_detail::executeQuantLstm (const Node &node, const std::vector< const RuntimeTensor * > &inputs, OnnxCompute *compute=nullptr)
 Execute quant lstm.
 

变量说明

◆ directions

◆ gates

size_t gates

在文件 OnnxExecute.cpp 第 684 行定义.

被这些函数引用 eve::tensor::onnx_detail::executeQuantLstm().

◆ rows

size_t rows

在文件 OnnxExecute.cpp 第 684 行定义.

◆ scales

◆ tensor

const RuntimeTensor& tensor

在文件 OnnxExecute.cpp 第 681 行定义.

◆ zeros

std::vector<int64_t> zeros