class OnnxRuntime::TensorInfo

Overview

Represents metadata for a tensor (name, type, shape).

Defined in:

onnxruntime/tensor_info.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String, type : OnnxRuntime::LibOnnxRuntime::TensorElementDataType, shape : Array(Int64)) #

[View source]

Class Method Detail

def self.from_type_info(name : String, type_info : Pointer(LibOnnxRuntime::OrtTypeInfo), session) #

Create a TensorInfo from OrtTypeInfo


[View source]

Instance Method Detail

def name : String #

[View source]
def shape : Array(Int64) #

[View source]
def type : LibOnnxRuntime::TensorElementDataType #

[View source]