Record Class ModelInspection
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.persistence.ModelInspection
public record ModelInspection(ModelSettings settings, long parameters, int tensors, long bytes)
extends Record
Embedded settings and storage counts, read without allocating model weights.
-
Constructor Summary
ConstructorsConstructorDescriptionModelInspection(ModelSettings settings, long parameters, int tensors, long bytes) Creates an instance of aModelInspectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theparametersrecord component.settings()Returns the value of thesettingsrecord component.inttensors()Returns the value of thetensorsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelInspection
Creates an instance of aModelInspectionrecord class.- Parameters:
settings- the value for thesettingsrecord componentparameters- the value for theparametersrecord componenttensors- the value for thetensorsrecord componentbytes- the value for thebytesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
parameters
public long parameters()Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
tensors
public int tensors()Returns the value of thetensorsrecord component.- Returns:
- the value of the
tensorsrecord component
-
bytes
public long bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-