Skip to content

Commit da1de79

Browse files
Ervin Tvincentpierre
Ervin T
andauthored
[bug-fix] Cherry-pick remove extra period to Release 10 (#4680)
* Remove extra period * Update changelog * Re add a period (#4676) * Adding a trailing period * formating Co-authored-by: Vincent-Pierre BERGES <[email protected]> Co-authored-by: Vincent-Pierre BERGES <[email protected]>
1 parent 058fc2f commit da1de79

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

com.unity.ml-agents/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Previously, this would result in an infinite loop and cause the editor to hang.
3535
- Fixed an issue where runs could not be resumed when using TensorFlow and Ghost Training. (#4593)
3636
- Change the tensor type of step count from int32 to int64 to address the overflow issue when step
3737
goes larger than 2^31. Previous Tensorflow checkpoints will become incompatible and cannot be loaded. (#4607)
38+
- Remove extra period after "Training" in console log. (#4674)
3839

3940

4041
## [1.5.0-preview] - 2020-10-14

ml-agents/mlagents/trainers/stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ def __init__(self):
111111
def write_stats(
112112
self, category: str, values: Dict[str, StatsSummary], step: int
113113
) -> None:
114-
is_training = "Not Training."
114+
is_training = "Not Training"
115115
if "Is Training" in values:
116116
stats_summary = values["Is Training"]
117117
if stats_summary.mean > 0.0:
118-
is_training = "Training."
118+
is_training = "Training"
119119

120120
elapsed_time = time.time() - self.training_start_time
121121
log_info: List[str] = [category]
@@ -136,7 +136,7 @@ def write_stats(
136136
else:
137137
log_info.append("No episode was completed since last summary")
138138
log_info.append(is_training)
139-
logger.info(". ".join(log_info))
139+
logger.info(". ".join(log_info) + ".")
140140

141141
def add_property(
142142
self, category: str, property_type: StatsPropertyType, value: Any

0 commit comments

Comments
 (0)