Record Class GenAIOliveTarget
java.lang.Object
java.lang.Record
smile.onnx.genai.GenAIOliveTarget
- Record Components:
candidateId- GenAI cascade id (cuda,dml,cpu, …).device- Olive--device(gpu,npu,cpu).provider- Olive--providerEP name.defaultPrecision- preferred Olive--precisionwhen unset (fp8orint4).
-
Constructor Summary
ConstructorsConstructorDescriptionGenAIOliveTarget(String candidateId, String device, String provider, String defaultPrecision) Creates an instance of aGenAIOliveTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecandidateIdrecord component.Returns the value of thedefaultPrecisionrecord component.device()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns whether this target prefers FP8 when auto-selecting precision.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GenAIOliveTarget
public GenAIOliveTarget(String candidateId, String device, String provider, String defaultPrecision) Creates an instance of aGenAIOliveTargetrecord class.- Parameters:
candidateId- the value for thecandidateIdrecord componentdevice- the value for thedevicerecord componentprovider- the value for theproviderrecord componentdefaultPrecision- the value for thedefaultPrecisionrecord component
-
-
Method Details
-
prefersFp8
public boolean prefersFp8()Returns whether this target prefers FP8 when auto-selecting precision.- Returns:
truefor CUDA (and similar) FP8-capable targets.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
candidateId
Returns the value of thecandidateIdrecord component.- Returns:
- the value of the
candidateIdrecord component
-
device
-
provider
-
defaultPrecision
Returns the value of thedefaultPrecisionrecord component.- Returns:
- the value of the
defaultPrecisionrecord component
-