class
OnnxRuntime::TensorInfo
- OnnxRuntime::TensorInfo
- Reference
- Object
Overview
Represents metadata for a tensor (name, type, shape).
Defined in:
onnxruntime/tensor_info.crConstructors
- .new(name : String, type : OnnxRuntime::LibOnnxRuntime::TensorElementDataType, shape : Array(Int64))
Class Method Summary
-
.from_type_info(name : String, type_info : Pointer(LibOnnxRuntime::OrtTypeInfo), session)
Create a TensorInfo from OrtTypeInfo
Instance Method Summary
Constructor Detail
def self.new(name : String, type : OnnxRuntime::LibOnnxRuntime::TensorElementDataType, shape : Array(Int64))
#
Class Method Detail
def self.from_type_info(name : String, type_info : Pointer(LibOnnxRuntime::OrtTypeInfo), session)
#
Create a TensorInfo from OrtTypeInfo