강의

멘토링

로드맵

Inflearn コミュニティ Q&A

ingbeeeded7104 のプロフィール画像
ingbeeeded7104

投稿した質問数

深層学習CNN完璧ガイド - TFKerasバージョン

eager execution에 대해서 질문이 있습니다

作成

·

227

0

안녕하세요. 혹시 텐서플로우 정확히 몇 버전부터 기본적으로 eager_execution 적용이 된 것인가요?

추가로 2.4.1을 쓰고 있는데, Input Layer를 eager_execution=True 환경에서 numpy로 바꾸는 방법이 있나 궁급합니다!

eager_executioncnn딥러닝kaggletensorflow머신러닝 배워볼래요? keras

回答 2

0

Keras 2.2 이하에서는 Input / Output Layer의 타입인 KerasTensor와 넘파이가 바로 연산이 되었던 것 같은데, TF에 속해진 Keras 2.4에서는 Eager Execution이 되질 않는 것 같네요. 그래서 disable_eager를 해야만 KerasTensor * Numpy가 가능합니다

0

dooleyz3525님의 프로필 이미지
dooleyz3525
インストラクター

안녕하십니까, 

tensorflow 2.0 부터 eager execution이 지원되었습니다. 

그리고 Input layer의 output 값을 모델 생성시에는 가져올 수 없으며, 모델에 입력값을 넣어주어야 합니다. 

아래는 stackover flow에서 찾은 결과 입니다. 

https://stackoverflow.com/questions/62751608/convert-keras-input-to-numpy-array 

ingbeeeded7104 のプロフィール画像
ingbeeeded7104

投稿した質問数

質問する