This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
fastNLP
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
13
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
update
tags/v0.1.0
FengZiYjun
7 years ago
parent
501ffb26c5
commit
0430067faf
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
fastNLP/core/trainer.py
+ 1
- 1
fastNLP/core/trainer.py
View File
@@ -164,7 +164,7 @@ class BaseTrainer(object):
self.grad_backward(loss)
self.update()
if step % kwargs["n_print"] == 0:
if
kwargs["n_print"] > 0 and
step % kwargs["n_print"] == 0:
end = time.time()
diff = timedelta(seconds=round(end - kwargs["start"]))
print_output = "[epoch: {:>3} step: {:>4}] train loss: {:>4.2} time: {}".format(
Write
Preview
Loading…
Cancel
Save