本文主要是介绍tacotron之二——具体函数分析,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
看到了很多不友好的函数,这些函数可能,而且极大可能在转换tflite时出现问题。
甚至有的函数还是用的很旧的函数:我的版本tf1.14.0
from tensorflow.contrib.rnn import OutputProjectionWrapper
from tensorflow.contrib.seq2seq import BasicDecoder, BahdanauAttention, AttentionWrapper
下面的seq2seq是经常用的模块,但是我不能用新的tfa,因为安装的话可能要卸载旧的tf版本,这就麻烦了,假如我有很多服务器还好。而上面的那个我是死活找不到新的API,这可咋整?
下面我记录一些函数:
The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead
The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead
The name tf.FIFOQueue is deprecated. Please use tf.queue.FIFOQueue instead
The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable insteaddropout (from tensorflow.python.layers.core) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.
这篇关于tacotron之二——具体函数分析的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!