딥딥딥

  • 홈
  • 태그

numpy 1

Tensorflow: 'EagerTensor' object has no attribute 'to_numpy'

문제 상황 Tensor를 numpy 객체로 바꾸고 싶을 때의 상황입니다. Tensor.to_numpy() 시, 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'to_numpy' 에러가 나오는 것을 볼 수 있습니다. 해결 방법 to_numpy()가 아닌, numpy() 를 입력하시면 해결됩니다. a = tf.constant([[1, 2], [3, 4]]) np_a = a.to_numpy()가 아닌 np_a = a.numpy()

Error 2020.11.02
1
더보기
프로필사진

  • 분류 전체보기 (36)
    • Tensorflow (23)
    • Deep_Learning (0)
    • AI_Competition (0)
    • Programming_Language (3)
    • Error (4)
    • CS (2)
    • Interview (0)
    • Algorithm (0)
    • Pandas (0)
    • ETC (0)
    • Java (0)

Tag

pandas, deep learning, HIVE, cuDNN, Keras, PS, 케라스, LeetCode, lstm, c++, Object Detection, 알고리즘, numpy, CUDA, CS, TensorFlow, EfficientNet, 리트코드, Python, 텐서플로우,

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바