tensorflow將tf.contrib移除,許多功能轉(zhuǎn)移到了第三方庫,今天介紹其中的tensorflow_addons(tfa)的安裝與使用方法: tfa安裝: pip install tensorflow-addons 需要注意tfa版本與tf版本對(duì)應(yīng),官方github上列出了對(duì)應(yīng)關(guān)系:
pip install tensorflow_addons==0.9.1 tfa使用: import tensorflow_addons as tfa 附官方API鏈接: |
|