[개발자를 위한 머신러인 & 딥러닝] 4장 질문입니다(4.6) 코드

35 views
Skip to first unread message

wheelarm

unread,
Jan 5, 2025, 9:40:03 PMJan 5
to 머신러닝/딥러닝 도서 Q&A
주어진 코드를 실행하였습니다.  (코랩에서)
아래와 같이 오류가 발생하였습니다.  
이 경우 tensorflow의 버전을 낮추는 것외에는 방법이 없나요?   
tensorflow_addons 가 TensorFlow 2.12.0 이상, 2.15.0 미만의 버전에서만 지원이 된다고 하는데.. 현재 tensorflow  버전은 2.18.0 입니다.

에러  -------------------------------------------------------------

/usr/local/lib/python3.10/dist-packages/tensorflow_addons/utils/tfa_eol_msg.py:23: UserWarning:

TensorFlow Addons (TFA) has ended development and introduction of new features.
TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024.
Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP).

For more information see: https://github.com/tensorflow/addons/issues/2807

  warnings.warn(
/usr/local/lib/python3.10/dist-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.13.0 and strictly below 2.16.0 (nightly versions are not supported).
 The versions of TensorFlow you are currently using is 2.17.1 and is not supported.
Some things might work, some things might not.
If you were to encounter a bug, do not file an issue.
If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version.
You can find the compatibility matrix in TensorFlow Addon's readme:
https://github.com/tensorflow/addons
  warnings.warn(
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-7cebd7ff62f1> in <cell line: 3>()
      1 import tensorflow as tf
      2 import tensorflow_datasets as tfds
----> 3 import tensorflow_addons as tfa
      4
      5 model = tf.keras.models.Sequential([

.
.
.
.
/usr/local/lib/python3.10/dist-packages/tensorflow_addons/utils/types.py in <module>
     27     # New versions of Keras require importing from `keras.src` when
     28     # importing internal symbols.
---> 29     from keras.src.engine import keras_tensor
     30 elif Version(tf.__version__).release >= Version("2.5").release:
     31     from keras.engine import keras_tensor

ModuleNotFoundError: No module named 'keras.src.engine'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------



Haesun Park

unread,
Jan 7, 2025, 7:23:32 AMJan 7
to wheelarm, 머신러닝/딥러닝 도서 Q&A
안녕하세요. 박해선입니다.
네 패키지 버전으로 인한 문제는 어쩔 도리가 없네요. ㅠ.ㅠ

2025년 1월 6일 (월) 오전 11:40, wheelarm <whee...@gmail.com>님이 작성:
--
이 메일은 Google 그룹스 '머신러닝/딥러닝 도서 Q&A' 그룹에 가입한 분들에게 전송되는 메시지입니다.
이 그룹에서 탈퇴하고 더 이상 이메일을 받지 않으려면 ml-dl-book-qn...@googlegroups.com에 이메일을 보내세요.
이 토론을 보려면 https://groups.google.com/d/msgid/ml-dl-book-qna/17a0fcc9-c13f-4979-ab9e-12c94683805dn%40googlegroups.com 페이지로 이동하세요.
Reply all
Reply to author
Forward
0 new messages