OS : Windows10 64 bits
Python :3.
Tensorflow : 2.3.0___ tf.keras이용
CUDA Toolkit (NVDIA GPU 가속 라이브러리)]
cuDNN
GPU - NVIDIZ GTX 1669 Ti(6GB)
[Tensorflow와 CUDA Toolkit와 cuDNN 은 아래와 같이 설치하기 ]
>> pip install tensorflow-cpu
1. CUDA Toolkit 설치
---------------------------------------------------
아무래도,,, 노트북은 GPU 한계가 있어서, GPU 성능이 낮은 경우 코랩에서 학습하는 방법을 선택해야 겠다.
코랩에는
기계학습
(Tensorflow,scikit-learn),
데이터 처리
(numpy,pandas, matplotlib) ,
영상처리(OpenCV) 등의 기본적인 패키지 설치됨.
---------------------------------------------------
import tensorflow as tf
#1
a = tf.constant([1,2])
a+1 #tf.add(a,1), tf.math.add(a,1)
a-1 #tf.subtract(a,1) , tf.math.subtract(a,1)
a*2 #tf.multiply(a,2) , tf.math.multiply(a,2)
a/2 #tf.divide(a,2) , tf.math.divide(a,2)
#2
b=tf.constant([3,4])
a+b
a-b
a*b
a/b
#3
a=tf.constant([[1,2],[3,4]])
b=tf.constant([1,2])
a+b
a-b
a*b
a/b
| 파이썬 삼각함수 그래프 그리기 (상세 설명 버전) (0) | 2026.01.13 |
|---|---|
| 수학적인 기초_딥러닝에서의 쓰임 _260113 (0) | 2026.01.13 |
| [python]6.조건문 (0) | 2026.01.07 |
| [파이썬]Python으로 이미지 파일을 PDF로 변환하는 법: img2pdf 사용 가이드 (4) | 2024.11.17 |
| [파이썬]모듈 실행 제어: Python의 if __name__ == "__main__" 구문 (0) | 2024.11.17 |