상세 컨텐츠

본문 제목

[노트북 환경설정] 텐서플로 설치

<개인공부>/[Python]

by 데브수달 2026. 1. 13. 21:19

본문

728x90
반응형

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

 

728x90
반응형

관련글 더보기