class documentation
class OutputConfig(CustomBaseModel):
Known subclasses: hubai_sdk.utils.config.InputConfig
Shape, layout, and data type of one model output.
| Method | validate |
Undocumented |
| Instance Variable | data |
Tensor element type. |
| Instance Variable | layout |
Dimension labels such as "NCHW". A default is inferred from shape when omitted. |
| Instance Variable | name |
Tensor name in the source model. |
| Instance Variable | shape |
Tensor dimensions. May be omitted when they can be inferred. |
| Class Method | _make |
Undocumented |
Inherited from CustomBaseModel:
| Class Variable | model |
Undocumented |
@model_validator( mode='before')
@classmethod
def _make_default_layout(cls, data: @classmethod
dict[ str, Any]) -> dict[ str, Any]:
¶
Undocumented