Title: Performance issues in your project (by P3) · Issue #5 · Keyird/DeepLearning-TensorFlow2 · GitHub
Open Graph Title: Performance issues in your project (by P3) · Issue #5 · Keyird/DeepLearning-TensorFlow2
X Title: Performance issues in your project (by P3) · Issue #5 · Keyird/DeepLearning-TensorFlow2
Description: Hello! I've found a performance issue in your project: batch() should be called before map(), which could make your program more efficient. Here is the tensorflow document to support it. Detailed description is listed below: /7. ResNet/t...
Open Graph Description: Hello! I've found a performance issue in your project: batch() should be called before map(), which could make your program more efficient. Here is the tensorflow document to support it. Detailed d...
X Description: Hello! I've found a performance issue in your project: batch() should be called before map(), which could make your program more efficient. Here is the tensorflow document to support it. Detail...
Opengraph URL: https://github.com/Keyird/DeepLearning-TensorFlow2/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Performance issues in your project (by P3)","articleBody":"Hello! I've found a performance issue in your project: `batch()` should be called before `map()`, which could make your program more efficient. Here is [the tensorflow document](https://tensorflow.google.cn/guide/data_performance?hl=zh_cn#vectorized_mapping) to support it.\r\n\r\nDetailed description is listed below:\r\n\r\n- /7. ResNet/train.py: `.batch(128)`[(here)](https://github.com/Keyird/DeepLearning-TensorFlow2/blob/118e16981498ffd73e9b98c3805d0666fd0c70bc/7.%20ResNet/train.py#L21) should be called before `.map(preprocess)`[(here)](https://github.com/Keyird/DeepLearning-TensorFlow2/blob/118e16981498ffd73e9b98c3805d0666fd0c70bc/7.%20ResNet/train.py#L21).\r\n- /7. ResNet/train.py: `.batch(128)`[(here)](https://github.com/Keyird/DeepLearning-TensorFlow2/blob/118e16981498ffd73e9b98c3805d0666fd0c70bc/7.%20ResNet/train.py#L24) should be called before `.map(preprocess)`[(here)](https://github.com/Keyird/DeepLearning-TensorFlow2/blob/118e16981498ffd73e9b98c3805d0666fd0c70bc/7.%20ResNet/train.py#L24).\r\n- /4. AlexNet/AlexNet.py: `.batch(32)`[(here)](https://github.com/Keyird/DeepLearning-TensorFlow2/blob/118e16981498ffd73e9b98c3805d0666fd0c70bc/4.%20AlexNet/AlexNet.py#L99) should be called before `.map(preprocess)`[(here)](https://github.com/Keyird/DeepLearning-TensorFlow2/blob/118e16981498ffd73e9b98c3805d0666fd0c70bc/4.%20AlexNet/AlexNet.py#L99).\r\n- /5. VGG11/VGG11.py: `.batch(16)`[(here)](https://github.com/Keyird/DeepLearning-TensorFlow2/blob/118e16981498ffd73e9b98c3805d0666fd0c70bc/5.%20VGG11/VGG11.py#L99) should be called before `.map(preprocess)`[(here)](https://github.com/Keyird/DeepLearning-TensorFlow2/blob/118e16981498ffd73e9b98c3805d0666fd0c70bc/5.%20VGG11/VGG11.py#L99).\r\n\r\nBesides, you need to check the function called in `map()`(e.g., `preprocess` called in `.map(preprocess)`) whether to be affected or not to make the changed code work properly. For example, if `preprocess` needs data with shape (x, y, z) as its input before fix, it would require data with shape (batch_size, x, y, z).\r\n\r\nLooking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.","author":{"url":"https://github.com/DLPerf","@type":"Person","name":"DLPerf"},"datePublished":"2021-08-29T12:57:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5/DeepLearning-TensorFlow2/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:71db729a-2685-91e4-c471-89f4076ad284 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E99A:38EED0:6408981:8D6C86F:6A5756AA |
| html-safe-nonce | 0c716a66d09268be1cce5a0f6420a468d9c84ced376ad8b81d62a30fedcbbc9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTlBOjM4RUVEMDo2NDA4OTgxOjhENkM4NkY6NkE1NzU2QUEiLCJ2aXNpdG9yX2lkIjoiNTg2NzA4MTIxMzk1ODExNzAzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4bb936b426ac05765814b676120eeaf9034bd955c7cf6ae698c5069b231b0dca |
| hovercard-subject-tag | issue:982092327 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Keyird/DeepLearning-TensorFlow2/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec6416264c59ebcc381c8f87bd11e234d0e41ee5a4526d26d3dfb880bd125e73/Keyird/DeepLearning-TensorFlow2/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec6416264c59ebcc381c8f87bd11e234d0e41ee5a4526d26d3dfb880bd125e73/Keyird/DeepLearning-TensorFlow2/issues/5 |
| og:image:alt | Hello! I've found a performance issue in your project: batch() should be called before map(), which could make your program more efficient. Here is the tensorflow document to support it. Detailed d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DLPerf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/Keyird/DeepLearning-TensorFlow2 git https://github.com/Keyird/DeepLearning-TensorFlow2.git |
| octolytics-dimension-user_id | 46480540 |
| octolytics-dimension-user_login | Keyird |
| octolytics-dimension-repository_id | 255152147 |
| octolytics-dimension-repository_nwo | Keyird/DeepLearning-TensorFlow2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 255152147 |
| octolytics-dimension-repository_network_root_nwo | Keyird/DeepLearning-TensorFlow2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 602250ea3b6dd8302a7220ef98adb828dbc807e4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width