Skip to content

Commit

Permalink
CompileTFGraphJob: allow Variable epoch (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
vieting authored and Atticus1806 committed Oct 2, 2023
1 parent 29a7557 commit f62b7df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions returnn/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class CompileTFGraphJob(Job):
"""
This Job is a wrapper around the RETURNN tool comptile_tf_graph.py
This Job is a wrapper around the RETURNN tool compile_tf_graph.py
"""

Expand Down Expand Up @@ -47,7 +47,7 @@ def __init__(
:param int train:
:param int eval:
:param int search:
:param int|None epoch: compile a specific epoch for networks that might change with every epoch
:param int|tk.Variable|None epoch: compile a specific epoch for networks that might change with every epoch
:param int log_verbosity: RETURNN log verbosity from 1 (least verbose) to 5 (most verbose)
:param str|None device: optimize graph for cpu or gpu. If `None`, defaults to cpu for current RETURNN.
For any RETURNN version before `cd4bc382`, the behavior will depend on the `device` entry in the
Expand Down Expand Up @@ -115,7 +115,7 @@ def run(self):
if self.device is not None:
args.append("--device=%s" % self.device)
if self.epoch is not None:
args.append("--epoch=%d" % self.epoch)
args.append("--epoch=%d" % util.instanciate_delayed(self.epoch))
if self.summaries_tensor_name is not None:
args.append("--summaries_tensor_name=%s" % self.summaries_tensor_name)
if self.rec_step_by_step is not None:
Expand Down

0 comments on commit f62b7df

Please sign in to comment.