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

在执行train_am.py 文件时出现如下警告 #16

Closed
freefly518 opened this issue Nov 17, 2020 · 6 comments
Closed

在执行train_am.py 文件时出现如下警告 #16

freefly518 opened this issue Nov 17, 2020 · 6 comments

Comments

@freefly518
Copy link

我在执行下面代码的时候。出现如下警告。其他人有吗?
python train_am.py --data_config ./configs/am_data.yml --model_config ./configs/conformer.yml

WARNING:tensorflow:7 out of the last 9 calls to <function MultiHeadAttention.call at 0x7f2b902fb840> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.
2020-11-17 10:08:31,362 - tensorflow - WARNING - 7 out of the last 9 calls to <function MultiHeadAttention.call at 0x7f2b902fb840> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors. Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. Please refer to https://www.tensorflow.org/tutorials/customization/performance#python_or_tensor_args and https://www.tensorflow.org/api_docs/python/tf/function for more details.

@freefly518
Copy link
Author

freefly518 commented Nov 17, 2020

数据集是 aishell1
我没有aishell2 的数据集

@Z-yq
Copy link
Owner

Z-yq commented Nov 17, 2020

没有问题,这个是多重@tf.function导致的,除了会有警告,没有其它影响

@freefly518
Copy link
Author

@Z-yq
程序集成了最新的模型,模型比较多。
如果有时间,录点视频,大概讲解一下,效果非常好!

@freefly518
Copy link
Author

@Z-yq 建议创建一个交流群。不知怎么样。

@Z-yq
Copy link
Owner

Z-yq commented Nov 17, 2020

交流群 的提议可以,我建一个

@Z-yq
Copy link
Owner

Z-yq commented Nov 17, 2020

这类问题进群说吧,这里就关闭了

@Z-yq Z-yq closed this as completed Nov 17, 2020
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

No branches or pull requests

2 participants