Upload Model
- upload_model(self, model: torch.jit.TopLevelTracedModule | coremltools.models.model.MLModel | onnx.ModelProto | bytes | str, name: str | None = None) Model
Upload a model to the QAI Hub.
- Parameters:
model – The model to upload.
name – The name of the model.
- Returns:
Returns a model object if successful.
- Return type:
Model
Note
For details, see upload_model in QAI Hub API.
Example
from netspresso import NPQAI
QAI_HUB_API_TOKEN = "YOUR_QAI_HUB_API_TOKEN"
np_qai = NPQAI(api_token=QAI_HUB_API_TOKEN)
model = np_qai.upload_model("YOUR_MODEL_PATH")