Record Class ModelMetadata
java.lang.Object
java.lang.Record
smile.onnx.ModelMetadata
- Record Components:
producerName- the tool or framework that produced the model.graphName- the name of the main computation graph.graphDescription- a human-readable description of the graph.domain- the model domain (e.g."ai.onnx").description- a human-readable description of the model.version- the model version integer.customMetadata- a map of user-defined string key-value pairs stored in the model.
public record ModelMetadata(String producerName, String graphName, String graphDescription, String domain, String description, long version, Map<String,String> customMetadata)
extends Record
Metadata associated with an ONNX model. This includes producer information,
graph description, domain, version, and any user-defined custom metadata
key-value pairs embedded in the model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecustomMetadatarecord component.Returns the value of thedescriptionrecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegraphDescriptionrecord component.Returns the value of thegraphNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theproducerNamerecord component.toString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
ModelMetadata
public ModelMetadata(String producerName, String graphName, String graphDescription, String domain, String description, long version, Map<String, String> customMetadata) Creates an instance of aModelMetadatarecord class.- Parameters:
producerName- the value for theproducerNamerecord componentgraphName- the value for thegraphNamerecord componentgraphDescription- the value for thegraphDescriptionrecord componentdomain- the value for thedomainrecord componentdescription- the value for thedescriptionrecord componentversion- the value for theversionrecord componentcustomMetadata- the value for thecustomMetadatarecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
producerName
Returns the value of theproducerNamerecord component.- Returns:
- the value of the
producerNamerecord component
-
graphName
-
graphDescription
Returns the value of thegraphDescriptionrecord component.- Returns:
- the value of the
graphDescriptionrecord component
-
domain
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
version
-
customMetadata
Returns the value of thecustomMetadatarecord component.- Returns:
- the value of the
customMetadatarecord component
-