OnnxTensorContract

dicechess.engine.model.OnnxTensorContract
final case class OnnxTensorContract(name: String, dataType: OnnxJavaType, shape: Vector[Long])

One tensor of a loaded ONNX graph, as the runtime reports it. Separated from the checks below so the shape rules can be tested without a real session — every dimension and dtype branch is reachable from a value, not from a fixture.

Value parameters

shape

dimensions as ONNX Runtime states them: a negative entry is a dynamic (symbolic) axis

Attributes

Source
OnnxModelContract.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product