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

Rework frameworks notebooks to fn API #2761

Merged
merged 3 commits into from
Mar 5, 2021

Conversation

awolant
Copy link
Contributor

@awolant awolant commented Mar 5, 2021

Signed-off-by: Albert Wolant awolant@nvidia.com

Why we need this PR?

  • Refactoring to improve frameworks examples.

What happened in this PR?

  • What solution was applied:
    Update frameworks examples notebooks to fn API
  • Affected modules and functionalities:
    Frameworks examples
  • Documentation (including examples):
    Frameworks examples

JIRA TASK: [DALI-1879]

Signed-off-by: Albert Wolant <awolant@nvidia.com>
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@awolant
Copy link
Contributor Author

awolant commented Mar 5, 2021

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2134977]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2134977]: BUILD PASSED

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

common part of pipeline, other pipelines will inherit it
  • There's no inheritance
  • There's no pipeline yet (as it used to be), so "other pipelines" doesn't make sense any more

Suggested alternative:

common part of the processing graph, used by all pipelines


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

common part of pipeline, other pipelines will inherit it
  • There's no inheritance
  • There's no pipeline yet (as it used to be), so "other pipelines" doesn't make sense any more

Suggested alternative:

common part of the processing graph, used by all pipelines


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

common part of pipeline, other pipelines will inherit it
  • There's no inheritance
  • There's no pipeline yet (as it used to be), so "other pipelines" doesn't make sense any more

Suggested alternative:

common part of the processing graph, used by all pipelines


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -53,7 +53,7 @@
"tfrecord_idx = \"idx_files/train.idx\"\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

common part of pipeline, other pipelines will inherit it
  • There's no inheritance
  • There's no pipeline yet (as it used to be), so "other pipelines" doesn't make sense any more

Suggested alternative:

common part of the processing graph, used by all pipelines


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

MXNet reader pipeline (the camel-cased name doesn't make sense now)


Reply via ReviewNB

Copy link
Contributor

Choose a reason for hiding this comment

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

To clarify: what you're suggesting are three separate words: MXNet reader pipeline?

+1 for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done for all

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Caffe reader pipeline (the camel-cased name doesn't make sense now)


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

File reader pipeline (the camel-cased name doesn't make sense now)


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

TFRecord reader pipeline (the camel-cased name doesn't make sense now)


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess you didn't rerun the example? (the name of the pipeline has changed)


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

MXNet reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Caffe reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

File reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

TFRecord reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

MXNet reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Caffe reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

File reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

TFRecord reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -21,62 +21,36 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Line 28, weird indent


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -21,62 +21,36 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we do anything about those warnings? Feel free to consider this out of scope


Reply via ReviewNB

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 tried, but the suggested alternative does not work. I'll look at it separately.

@review-notebook-app
Copy link

review-notebook-app bot commented Mar 5, 2021

View / edit / reply to this conversation on ReviewNB

jantonguirao commented on 2021-03-05T08:06:27Z
----------------------------------------------------------------

readers.MXNet -> readers.mxnet

Also, please make it a link to the documentation


awolant commented on 2021-03-05T12:31:56Z
----------------------------------------------------------------

Done

@review-notebook-app
Copy link

review-notebook-app bot commented Mar 5, 2021

View / edit / reply to this conversation on ReviewNB

jantonguirao commented on 2021-03-05T08:06:28Z
----------------------------------------------------------------

RN50Pipeline -> rn50_pipeline

readers.MXNet -> readers.mxnet (with link)

Reader ops -> reader operators


awolant commented on 2021-03-05T12:32:01Z
----------------------------------------------------------------

Done

@@ -53,7 +53,7 @@
"tfrecord_idx = \"idx_files/train.idx\"\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

MXNet reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -53,7 +53,7 @@
"tfrecord_idx = \"idx_files/train.idx\"\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

Caffe reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -53,7 +53,7 @@
"tfrecord_idx = \"idx_files/train.idx\"\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

File reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -53,7 +53,7 @@
"tfrecord_idx = \"idx_files/train.idx\"\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

TFRecord reader pipeline


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@jantonguirao jantonguirao self-assigned this Mar 5, 2021
@mzient mzient self-assigned this Mar 5, 2021
@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove ITERATIONS at all. Now we are reading a small data set, so we don't have to exit early.


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove ITERATIONS at all. Now we are reading a small data set, so we don't have to exit early.


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -96,31 +96,26 @@
"metadata": {},
Copy link
Contributor

@JanuszL JanuszL Mar 5, 2021

Choose a reason for hiding this comment

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

I think you can remove ITERATIONS at all. Now we are reading a small data set, so we don't have to exit early.


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -55,34 +55,31 @@
"metadata": {},
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove ITERATIONS at all. Now we are reading a small data set, so we don't have to exit early.


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -55,34 +55,31 @@
"metadata": {},
Copy link
Contributor

@JanuszL JanuszL Mar 5, 2021

Choose a reason for hiding this comment

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

I think you can remove ITERATIONS at all. Now we are reading a small data set, so we don't have to exit early.


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor Author

awolant commented Mar 5, 2021

Done


View entire conversation on ReviewNB

1 similar comment
Copy link
Contributor Author

awolant commented Mar 5, 2021

Done


View entire conversation on ReviewNB

Signed-off-by: Albert Wolant <awolant@nvidia.com>
@awolant
Copy link
Contributor Author

awolant commented Mar 5, 2021

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2136643]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2136643]: BUILD PASSED

@jantonguirao jantonguirao merged commit 72cc5a8 into NVIDIA:master Mar 5, 2021
@JanuszL JanuszL mentioned this pull request May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants