forked from huawei/mindspore2022
modify Returns
This commit is contained in:
parent
af03fffe87
commit
7492e59fe4
|
|
@ -318,7 +318,7 @@ class Parameter(MetaTensor_):
|
|||
data (Union[Tensor, MetaTensor, int, float]): new data.
|
||||
slice_shape (bool): If slice the Parameter, will not check if shape is match. Default: False.
|
||||
|
||||
Retruns:
|
||||
Returns:
|
||||
Parameter, the parameter after set data.
|
||||
"""
|
||||
def raise_type_error(incoming):
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ def package_graph_event(data):
|
|||
Args:
|
||||
data (Bytes): Graph bytes string.
|
||||
|
||||
Retruns:
|
||||
Returns:
|
||||
Event, event log object.
|
||||
"""
|
||||
graph_event = Event()
|
||||
|
|
@ -209,7 +209,7 @@ def _fill_tensor_summary(tag: str, np_value, summary_tensor):
|
|||
np_value (Type): Summary data type.
|
||||
summary_tensor (Tensor): The tensor of summary.
|
||||
|
||||
Retruns:
|
||||
Returns:
|
||||
Summary, return tensor summary content.
|
||||
"""
|
||||
logger.debug(f"Set({tag}) the tensor summary value")
|
||||
|
|
|
|||
Loading…
Reference in New Issue