addons icon indicating copy to clipboard operation
addons copied to clipboard

Performance issue in the definition of test_crf_log_likelihood, tensorflow_addons/text/tests/crf_test.py(P1)

Open DLPerf opened this issue 3 years ago • 4 comments

Hello, I found a performance issue in the definition of test_crf_log_likelihood, tensorflow_addons/text/tests/crf_test.py, tf.expand_dims will be called repeatedly during program execution, resulting in reduced efficiency. I think it should be created before the loop.

The same issues exist in

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 31 '21 06:08 DLPerf

@eli-osherovich Hi, my friend, could you consider my issue asap?

DLPerf avatar Sep 03 '21 13:09 DLPerf

/cc @howl-anderson

bhack avatar Sep 03 '21 14:09 bhack

@DLPerf Thank you for your reporting. I will take a closer look on it and I will keep you posted.

howl-anderson avatar Sep 03 '21 14:09 howl-anderson

@bhack @DLPerf Since this issue only affect testing not the CRF function itself and we have some high priority tasks for CRF (critical bugfix #2476 / refactor #2271 / tutorial #2552 / model wrapper #2555) need be done. So, I mark this issue as low priority. But don't worry, this issue is tracked and on my radar.

howl-anderson avatar Sep 04 '21 05:09 howl-anderson

TensorFlow Addons is transitioning to a minimal maintenance and release mode. New features will not be added to this repository. For more information, please see our public messaging on this decision: TensorFlow Addons Wind Down

Please consider sending feature requests / contributions to other repositories in the TF community with a similar charters to TFA: Keras Keras-CV Keras-NLP

seanpmorgan avatar Mar 01 '23 04:03 seanpmorgan