Browse Source

modify Returns

tags/v1.1.0
Jiaqi 5 years ago
parent
commit
7492e59fe4
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      mindspore/common/parameter.py
  2. +2
    -2
      mindspore/train/summary/_summary_adapter.py

+ 1
- 1
mindspore/common/parameter.py View File

@@ -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):


+ 2
- 2
mindspore/train/summary/_summary_adapter.py View File

@@ -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…
Cancel
Save