Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompileTFGraphJob: allow Variable epoch #435

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading