Z-yq / TensorflowASR

一个执着于让CPU\端侧-Model逼近GPU-Model性能的项目,CPU上的实时率(RTF)小于0.1
Apache License 2.0
461 stars 111 forks source link

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

Closed freefly518 closed 3 years ago

freefly518 commented 3 years ago

我在执行下面代码的时候。出现如下警告。其他人有吗? 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 commented 3 years ago

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

Z-yq commented 3 years ago

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

freefly518 commented 3 years ago

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

freefly518 commented 3 years ago

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

Z-yq commented 3 years ago

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

Z-yq commented 3 years ago

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