载入中...
搜索中...
未找到
OnnxInternal.h
浏览该文件的文档.
16 explicit Failure(std::string message, DiagnosticCode c = DiagnosticCode::InvalidArgument, std::string p = {})
150size_t broadcastIndex(size_t i, const std::vector<int64_t>& shape, const std::vector<int64_t>& output);
152std::optional<std::vector<RuntimeTensor>> executeIndex(const Node&, const std::vector<const RuntimeTensor*>&);
154std::optional<RuntimeTensor> executeShape(const Node&, const std::vector<const RuntimeTensor*>&);
156RuntimeTensor dispatchFloat(OnnxCompute&, const std::vector<const RuntimeTensor*>&, const std::vector<int64_t>&,
159std::optional<RuntimeTensor> executeMisc(const Node&, const std::vector<const RuntimeTensor*>&, OnnxCompute*);
161std::optional<RuntimeTensor> executeNeural(const Node&, const std::vector<const RuntimeTensor*>&, OnnxCompute*);
163std::optional<RuntimeTensor> executeNumeric(const Node&, const std::vector<const RuntimeTensor*>&, OnnxCompute*);
172std::vector<RuntimeTensor> execute(const Node& node, const std::vector<const RuntimeTensor*>& inputs,
175std::vector<RuntimeTensor> executeQuant(const Node& node, const std::vector<const RuntimeTensor*>& inputs,
178std::vector<RuntimeTensor> executeQuantLstm(const Node& node, const std::vector<const RuntimeTensor*>& inputs,
GPU execution boundary for native ONNX; retains no model and retains compiled resources for the lifet...
Definition OnnxCompute.h:25
Definition OnnxByteStorage.h:6
std::optional< RuntimeTensor > executeMisc(const Node &, const std::vector< const RuntimeTensor * > &, OnnxCompute *)
Execute misc.
Definition OnnxMisc.cpp:7
std::optional< RuntimeTensor > executeNumeric(const Node &, const std::vector< const RuntimeTensor * > &, OnnxCompute *)
Execute numeric.
Definition OnnxNumeric.cpp:61
size_t broadcastIndex(size_t i, const std::vector< int64_t > &shape, const std::vector< int64_t > &output)
Broadcast index.
Definition OnnxShapeOps.cpp:18
std::vector< int64_t > attrs(const Node &n, const char *key, std::vector< int64_t > fallback)
Attrs.
Definition OnnxInternal.h:132
std::vector< RuntimeTensor > executeQuant(const Node &node, const std::vector< const RuntimeTensor * > &inputs, OnnxCompute *compute=nullptr)
Execute quant.
Definition OnnxQuant.cpp:28
std::optional< RuntimeTensor > executeNeural(const Node &, const std::vector< const RuntimeTensor * > &, OnnxCompute *)
Execute neural.
Definition OnnxNeural.cpp:7
RuntimeTensor make(OnnxElement e, std::vector< int64_t > shape, const std::vector< T > &values)
Make.
Definition OnnxInternal.h:91
RuntimeTensor dispatchFloat(OnnxCompute &, const std::vector< const RuntimeTensor * > &, const std::vector< int64_t > &, const std::string &, size_t work=0)
Dispatches float.
Definition OnnxNumeric.cpp:33
std::vector< OnnxNamedTensor > evaluate(const ModelData &, std::span< const OnnxNamedTensor >, const std::vector< std::string > &, OnnxCompute *, OnnxRunOptions options)
Evaluate.
Definition OnnxRuntime.cpp:343
std::vector< RuntimeTensor > executeQuantLstm(const Node &node, const std::vector< const RuntimeTensor * > &inputs, OnnxCompute *compute=nullptr)
Execute quant lstm.
Definition OnnxLstm.cpp:78
std::vector< int64_t > broadcast(const std::vector< int64_t > &a, const std::vector< int64_t > &b)
Broadcast.
Definition OnnxShapeOps.cpp:8
std::optional< RuntimeTensor > executeShape(const Node &, const std::vector< const RuntimeTensor * > &)
Execute shape.
Definition OnnxShapeOps.cpp:31
std::vector< RuntimeTensor > execute(const Node &n, const std::vector< const RuntimeTensor * > &in, OnnxCompute *compute)
Execute.
Definition OnnxExecute.cpp:207
std::optional< std::vector< RuntimeTensor > > executeIndex(const Node &n, const std::vector< const RuntimeTensor * > &in)
Execute index.
Definition OnnxIndexOps.cpp:9
OnnxElement
ONNX wire element types; distinct from block-quantized Tensor storage.
Definition OnnxModel.h:18
@ Float32
@ InvalidArgument
@ Unsupported
Definition Container.h:602
Owning admission report; unsupported nodes remain inspectable but cannot execute.
Definition OnnxModel.h:48
Per-call deterministic RNG and optional strict finite-output diagnostic.
Definition OnnxModel.h:37
std::optional< RuntimeTensor > tensor
Definition OnnxInternal.h:30
std::vector< std::string > strings
Definition OnnxInternal.h:29
std::shared_ptr< ModelData > graph
Definition OnnxInternal.h:31
std::vector< int64_t > integers
Definition OnnxInternal.h:27
Failure(std::string message, DiagnosticCode c=DiagnosticCode::InvalidArgument, std::string p={})
Constructs a Failure.
Definition OnnxInternal.h:16
std::map< std::string, int64_t > opsets
Definition OnnxInternal.h:50
std::map< std::string, Input > inputs
Definition OnnxInternal.h:49
std::unordered_map< std::string, RuntimeTensor > constants
Definition OnnxInternal.h:48
std::map< std::string, Attribute > attrs
Definition OnnxInternal.h:37
std::vector< std::string > outputs
Definition OnnxInternal.h:36