当前位置:网站首页>tensorflow1. X and tensorflow2 Conversion of X

tensorflow1. X and tensorflow2 Conversion of X

2022-06-11 04:43:00 saya1009

The code in many papers is tensorflow1.x Version of , But now they basically use 2.x 了 , hold 1.x Version changed to 2.x Version first look at the conversion table , Some of the conversion tables are directly converted according to the conversion table , For example, add compat.v1.

Not directly convertible , such as Hparams, It is essentially a dictionary , Just use the dictionary directly , Reference it params.x Change to params[x].

I can't. I can only look at others' methods , It is best to simply convert , But some things are just hard to convert , Better not touch 1.x edition , Will bring misfortune .

原网站

版权声明
本文为[saya1009]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020546110615.html