Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Move lmnet/executor/train.py to blueoil/cmd #837

Merged
merged 5 commits into from
Feb 13, 2020
Merged

Move lmnet/executor/train.py to blueoil/cmd #837

merged 5 commits into from
Feb 13, 2020

Conversation

tfujiwar
Copy link
Contributor

What this patch does to fix the issue.

  • Remove blueoil/cmd/train.py (77d102a)
  • Move lmnet/executor/train.py to blueoil/cmd (d0dbd45)
  • Update blueoil/cmd/train.py (749daf9)

This PR looks big but most of the changes are just copied. Maybe it's easier to check each commit one by one than checking the whole changes.

Link to any relevant issues or pull requests.

#746

@blueoil-butler blueoil-butler bot added the CI: auto-run Run CI automatically label Feb 13, 2020
@bo-code-review-bot
Copy link

This PR needs Approvals as follows.

  • Ownership Approval for / from iizukak, tkng, ruimashita
  • Readability Approval for Python from tkng, tsawada

Please choose reviewers and requet reviews!

Click to see how to approve each reviews

You can approve this PR by triggered comments as follows.

  • Approve all reviews requested to you (readability and ownership) and LGTM review
    Approval, LGTM

  • Approve all ownership reviews
    Ownership Approval or OA

  • Approve all readability reviews
    Readability Approval or RA

  • Approve specified review targets

    • Example of Ownership Reviewer of /: Ownership Approval for / or OA for /
    • Example of Readability Reviewer of Python: Readability Approval for Python or RA for Python
  • Approve LGTM review
    LGTM

See all trigger comments

Please replace [Target] to review target

  • Ownership Approval
    • Ownership Approval for [Target]
    • OA for [Target]
    • Ownership Approval
    • OA
    • Approval
  • Readability Approval
    • Readability Approval for [Target]
    • RA for [Target]
    • [Target] Readability Approval
    • [Target] RA
    • Readability Approval
    • RA
    • Approval
  • LGTM
    • LGTM
    • lgtm

@click.option(
'-n',
'--network',
help='Network name which you want to use for this training. override config.DATASET_CLASS',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why we need this option.
Specify in config file is not enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also don't know why but I think we can remove this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the options network and dataset.

@click.option(
'-d',
'--dataset',
help='Dataset name which is the source of this training. override config.NETWORK_CLASS',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question.

return DatasetIterator(dataset, seed=rank, enable_prefetch=enable_prefetch)


def start_training(config):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is too long, But it's copied from original train.py.
We will refactor in other PR.

@tfujiwar tfujiwar requested a review from iizukak February 13, 2020 08:25
Copy link
Member

@iizukak iizukak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ownership Approval

@tfujiwar tfujiwar requested a review from tsawada February 13, 2020 08:26
Copy link
Contributor

@tsawada tsawada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readability Approval

@tfujiwar
Copy link
Contributor Author

/ready

@bo-mergebot
Copy link
Contributor

bo-mergebot bot commented Feb 13, 2020

⏳Merge job is queued...

@bo-mergebot bo-mergebot bot merged commit 8764e63 into blue-oil:master Feb 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI: auto-run Run CI automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants