Python63 RuntimeError: Detected a call to `Model.predict` inside a `tf.function`. 파이썬 3.8에 tensorflow-gpu==2.9.0 버전을 사용하는 텐서플로우 환경에서 학습을 진행하는 도중 아래와 같은 오류가 발생했다. 오류메세지: RuntimeError: Detected a call to `Model.predict` inside a `tf.function`. `Model.predict is a high-level endpoint that manages its own `tf.function`. Please move the call to `Model.predict` outside of all enclosing `tf.function`s. Note that you can call a `Model` directly on `Tensor`s inside a `tf.function` lik.. 2024. 1. 4. AttributeError: module 'numpy' has no attribute 'object'. from tensorflow.keras import * 에서 오류 발생. 오류 메세지: AttributeError: module 'numpy' has no attribute 'object'. `np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at.. 2024. 1. 3. github 사용법 컴퓨터에 git이 설치되어 있다는 전제하에 진행 1. github에 새 repository 생성 2. Code의 HTTPS 주소[원격저장소 주소] 복사 3. github에 올릴 코드가 있는 폴더로 이동하여 마우스 오른쪽 버튼을 누르고 Git Bash Here 클릭 4. 명령어 입력 # 로컬 저장소와 원격 저장소 연결 $ git init $ git remote add origin [원격 저장소 주소] -> master에서 main으로 바뀜 $ git branch -m master main (main으로 변경되면 생략 가능) # 원격 저장소에 파일 업로드 $ git pull origin [브랜치명] $ git add . 혹은 git add 추가할 파일.파일형식 ex) $ git add python.py ab.. 2024. 1. 2. 이전 1 ··· 13 14 15 16 다음