mirror of
https://github.com/clearml/clearml
synced 2025-02-12 07:35:08 +00:00
Add docstrings for model properties (#1213)
This commit is contained in:
parent
beb0f5e607
commit
592ab881f7
@ -342,11 +342,22 @@ class BaseModel(object):
|
|||||||
@property
|
@property
|
||||||
def published(self):
|
def published(self):
|
||||||
# type: () -> bool
|
# type: () -> bool
|
||||||
|
"""
|
||||||
|
Get the published state of this model.
|
||||||
|
|
||||||
|
:return:
|
||||||
|
|
||||||
|
"""
|
||||||
return self._get_base_model().locked
|
return self._get_base_model().locked
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def framework(self):
|
def framework(self):
|
||||||
# type: () -> str
|
# type: () -> str
|
||||||
|
"""
|
||||||
|
The ML framework of the model (for example: PyTorch, TensorFlow, XGBoost, etc.).
|
||||||
|
|
||||||
|
:return: The model's framework
|
||||||
|
"""
|
||||||
return self._get_model_data().framework
|
return self._get_model_data().framework
|
||||||
|
|
||||||
def __init__(self, task=None):
|
def __init__(self, task=None):
|
||||||
@ -2136,6 +2147,11 @@ class OutputModel(BaseModel):
|
|||||||
@property
|
@property
|
||||||
def upload_storage_uri(self):
|
def upload_storage_uri(self):
|
||||||
# type: () -> str
|
# type: () -> str
|
||||||
|
"""
|
||||||
|
The URI of the storage destination for uploaded model weight files.
|
||||||
|
|
||||||
|
:return: The URI string
|
||||||
|
"""
|
||||||
return self._get_base_model().upload_storage_uri
|
return self._get_base_model().upload_storage_uri
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
Loading…
Reference in New Issue
Block a user