#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
| size_t directions |
在文件 OnnxExecute.cpp 第 684 行定义.
被这些函数引用 eve::daynight::DayNight::applyReflectionProbeSky(), eve::fluids::buildVolumeFluidMeshDistribution(), eve::procgen::road::RoadNetwork::connectAllTurns(), eve::housegen::house_detail::State::floor(), eve::procgen::generateRockMesh(), importRpgMakerMap(), eve::ui_editing::UiDocumentTarget::makeSetStyle(), eve::graphics::planInspectionViews(), eve::rts::ArtilleryRelocationSystem::select(), eve::weapon::CombatCarrierRuntime::spawnVolley(), eve::fluids::VolumeFluidShadowCaster::update() , 以及 eve::procgen::road::detail::validateJunctionGeometry().
◆ gates
| size_t gates |
在文件 OnnxExecute.cpp 第 684 行定义.
◆ rows
| size_t rows |
在文件 OnnxExecute.cpp 第 684 行定义.
◆ scales
| std::vector<float> scales |
在文件 OnnxExecute.cpp 第 682 行定义.
被这些函数引用 eve::animation::AnimClip::addScaleKey(), eve::tensor::affine::dequantize(), eve::tensor::q::dequantizeAll(), eve::tensor::q::dequantValue(), eve::tensor::onnx_detail::executeNeural(), eve::tensor::onnx_detail::executeQuant(), eve::animation::AnimClip::getScaleKeyCount(), eve::animation::AnimClip::getScaleKeyTime(), eve::animation::AnimClip::getScaleKeyX(), eve::animation::AnimClip::getScaleKeyY(), eve::animation::AnimClip::getScaleKeyZ(), eve::animation::AnimClip::removeScaleKey(), eve::animation::AnimClip::retargetWithProfile() , 以及 eve::animation::AnimClip::setScaleKey().
◆ tensor
| const RuntimeTensor& tensor |
在文件 OnnxExecute.cpp 第 681 行定义.
◆ zeros
| std::vector<int64_t> zeros |