๐Ÿ’ฉ ์—๋Ÿฌ ํ•ด๊ฒฐ

[Tensorflow/์—๋Ÿฌ ํ•ด๊ฒฐ] Tensorflow 1.x ๋ฒ„์ „์„ ์‚ฌ์šฉ ์ค‘์ž„์—๋„ "deprecated" warning์ด ๋‚˜ํƒ€๋‚˜๋Š” ๋ฌธ์ œ

๋ณต๋งŒ 2021. 11. 30. 15:49

Tensorflow 1.x ๋ฒ„์ „์„ ์‚ฌ์šฉ ์ค‘์ž„์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ , Tensorflow 2์—์„œ ์‚ฌ๋ผ์ง„ ํ•จ์ˆ˜๋“ค์„ ํ˜ธ์ถœํ•  ๋•Œ warning ๋ฉ”์„ธ์ง€๊ฐ€ ๋–ด๋‹ค.

 

 

์ฒจ์—๋Š” ๊ทธ๋ƒฅ ๋ฌด์‹œํ•˜๊ณ  ์ง„ํ–‰ํ•˜๋ ค ํ–ˆ์ง€๋งŒ.. ๋„ˆ๋ฌด ๊ฑฐ์Šฌ๋ฆฐ๋‹ค

 

๋‹ค์Œ Tensorflow issue์— ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•๋“ค์ด ๋‚˜์™€ ์žˆ๋‹ค (๊ทธ๋ƒฅ TF2.0์„ ์‚ฌ์šฉํ•˜๋ผ๋Š” ๋‹ต๋ณ€์ด ๋น„์ถ” 72๊ฐœ๋ฅผ ๋ฐ›์•˜๋‹ค)

https://github.com/tensorflow/tensorflow/issues/27023

 

TF 1.x: remove the "deprecated" warning messages · Issue #27023 · tensorflow/tensorflow

I know the functional APIs, such as tf.layers.dense, will disappear in TF 2.0. However, their alternatives, tf.keras.layers, are not compatible with other components of TF 1.x, for example, they ev...

github.com

 


 

์–ด๋–ค ๋ฐฉ๋ฒ•๋“ค์€ ์ ์šฉ์ด ์•ˆ๋˜๊ธฐ๋„ ํ•˜๊ณ .. ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” jupyter notebook + tensorflow 1.15 ํ™˜๊ฒฝ์—์„œ๋Š” ๋‹ค์Œ ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•˜๋‹ˆ warning ๋ฉ”์„ธ์ง€๊ฐ€ ์‚ฌ๋ผ์กŒ๋‹ค. (WARNING ๋ ˆ๋ฒจ์˜ ๋กœ๊ทธ๋Š” ์ถœ๋ ฅํ•˜์ง€ ์•Š๋„๋ก ์„ค์ •)

tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)

 

 

 

๋ฐ˜์‘ํ˜•