OnnxModel
type OnnxModel struct {
// contains filtered or unexported fields
}
OnnxModel is a `clika_rt_onnx_model*` handle (single-owner).
Methods
Close
func (h *OnnxModel) Close()
Close frees the single-owner handle; safe to call twice.
Compile
func (m *OnnxModel) Compile() (*ModelGraph, error)
Compile compiles the model into a runnable ModelGraph; Close it when done.
NumNodes
func (m *OnnxModel) NumNodes() uint
NumNodes reports the model's node count.
Opset
func (m *OnnxModel) Opset() int64
Opset reports the model's opset version.