TensorFlow-Coding icon indicating copy to clipboard operation
TensorFlow-Coding copied to clipboard

Performance issues in lessonEight/textClassiferModel.py(P2)

Open DLPerf opened this issue 4 years ago • 0 comments

Hello,I found a performance issue in the definition of train_input_fn , lessonEight/textClassiferModel.py, dataset = dataset.map(parser) was called without num_parallel_calls. I think it will increase the efficiency of your program if you add this.

The same issues also exist in dataset = dataset.map(parser)

Here is the documemtation of tensorflow to support this thing.

Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.

DLPerf avatar Aug 20 '21 12:08 DLPerf