pretrained_model_tensor module#

class edgeimpulse_api.models.pretrained_model_tensor.PretrainedModelTensor(
*,
dataType: StrictStr,
name: StrictStr,
shape: List[StrictInt],
quantizationScale: float | None = None,
quantizationZeroPoint: float | None = None,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
data_type: StrictStr#
classmethod data_type_validate_enum(v)[source]#
classmethod from_dict(
obj: dict,
) PretrainedModelTensor[source]#

Create an instance of PretrainedModelTensor from a dict

classmethod from_json(
json_str: str,
) PretrainedModelTensor[source]#

Create an instance of PretrainedModelTensor from a JSON string

name: StrictStr#
quantization_scale: float | None#
quantization_zero_point: float | None#
shape: List[StrictInt]#
to_dict()[source]#

Returns the dictionary representation of the model using alias

to_json() str[source]#

Returns the JSON representation of the model using alias

to_str() str[source]#

Returns the string representation of the model using alias