In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "Tensorflow1.X migration to 2.0 tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and study the "Tensorflow1.X migration to 2.0 tutorial" bar!
Directory order script conversion folder batch conversion considerations single script conversion first go to the directory where you want to convert the script (eg:yolov3.py), and then:
Tf_upgrade_v2-- infile yolov3.py-- outfile yolov3.py folder batch conversion first enter the folder root directory (eg:yolov3/) you want to convert, and then you can convert all py files under the file:
Tf_upgrade_v2-- intree yolov3/-- outtree yolov3/-- copyotherfiles False considerations
1. An error like "tf.placeholder () is not compatible with eager execution" may be reported after the conversion, just add this sentence after the normal import tensorflow:
Import tensorflow as tftf.compat.v1.disable_eager_execution ()
The 2.tf2.0 version deprecates libraries like tf.flags, and you may have to reinstall absl.flags or switch to a package in tensorflow/addons to successfully migrate the code.
Thank you for your reading, the above is the content of "Tensorflow1.X Migration to 2.0 tutorial", after the study of this article, I believe you have a deeper understanding of the problem of Tensorflow1.X migration to 2.0 tutorial, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.