Skip to content

Commit

Permalink
feature/ Add note about Argparse. (#4321)
Browse files Browse the repository at this point in the history
* add a note about argparse

* update

Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
  • Loading branch information
3 people committed Nov 21, 2020
1 parent 1dfbde5 commit 3196767
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pl_examples/bug_report_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ def configure_optimizers(self):
return [optimizer], [lr_scheduler]


# NOTE: If you are using a cmd line to run your script,
# provide the cmd line as below.
# opt = "--max_epochs 1 --limit_train_batches 1".split(" ")
# parser = ArgumentParser()
# args = parser.parse_args(opt)

def run_test():

class TestModel(BoringModel):

def on_train_epoch_start(self) -> None:
Expand Down

0 comments on commit 3196767

Please sign in to comment.