노른이
87
2019-08-01 13:15:31
2
6415

텐서플로우를 사용하는데 출력하면 이상한게 잔뜩 뜹니다..


텐서플로를 사용하여 뭔가를 출력하면 아래같이 뜹니다. futurewarning같은게 잔뜩 뜨는데 해결방법이 뭔가요?  warning 밑으로는 출력값은 정상적으로 출력은 됩니다.


C:\Users\USER\Anaconda3\envs\TensorFlow\python.exe C:/Users/USER/PycharmProjects/untitled7/multiple_variable.py

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_qint8 = np.dtype([("qint8", np.int8, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorflow\python\framework\dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_qint16 = np.dtype([("qint16", np.int16, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorflow\python\framework\dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorflow\python\framework\dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_qint32 = np.dtype([("qint32", np.int32, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  np_resource = np.dtype([("resource", np.ubyte, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_qint8 = np.dtype([("qint8", np.int8, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_qint16 = np.dtype([("qint16", np.int16, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  _np_qint32 = np.dtype([("qint32", np.int32, 1)])

C:\Users\USER\Anaconda3\envs\TensorFlow\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

  np_resource = np.dtype([("resource", np.ubyte, 1)])

WARNING: Logging before flag parsing goes to stderr.

W0801 13:06:41.057718  6280 deprecation_wrapper.py:119] From C:/Users/USER/PycharmProjects/untitled7/multiple_variable.py:8: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.


W0801 13:06:41.081654  6280 deprecation_wrapper.py:119] From C:/Users/USER/PycharmProjects/untitled7/multiple_variable.py:14: The name tf.random_normal is deprecated. Please use tf.random.normal instead.


W0801 13:06:41.127531  6280 deprecation_wrapper.py:119] From C:/Users/USER/PycharmProjects/untitled7/multiple_variable.py:23: The name tf.train.GradientDescentOptimizer is deprecated. Please use tf.compat.v1.train.GradientDescentOptimizer instead.


W0801 13:06:41.222277  6280 deprecation_wrapper.py:119] From C:/Users/USER/PycharmProjects/untitled7/multiple_variable.py:26: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.


2019-08-01 13:06:41.223056: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

W0801 13:06:41.225270  6280 deprecation_wrapper.py:119] From C:/Users/USER/PycharmProjects/untitled7/multiple_variable.py:28: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.


0
0
  • 답변 2

  • dorba
    3
    2019-08-02 11:16:02

    Numpy 버전이 1.17 보다 낮아야합니다. 

    다음을 실행해보셔요 ~!

    pip install "numpy<1.17"


    1
  • 노른이
    87
    2019-08-03 22:29:55

    답변 감사합니다!!

    0
  • 로그인을 하시면 답변을 등록할 수 있습니다.