tensorflow tf.expand_dims()

사용 버전: Python 3.7.6, Tensorflow 2.1.0

tensorflow(텐서플로우) tf.expand_dims()에 대해서 알아보겠습니다.

괄호 안에는 input, axis, name 따위가 들어갑니다.

tf.expand_dims()는 배열의 차원을 늘려줍니다.
input에는 늘려질 배열을 넣습니다.
axis는 몇 번째 차원의 크기를 늘릴 건지 숫자를 넣습니다.
axis = 0 일 때.












axis = 1 일 때.






axis = 2 일 때.












끝.



카테고리: Tensorflow_python, Python

댓글

이 블로그의 인기 게시물

Python OpenCV 빈 화면 만들기

Python urllib.parse.quote()

Python bytes.fromhex()

Forensics .pyc 파일 .py로 복구하기

Android Notification with Full Screen

Android Minimum touch target size

Free privacy

KiCad 시작하기 2 (PCB 만들기)

Android AVD Ram size change