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 urllib.parse.quote()

KiCad 시작하기 4 (기존 회로도 수정 및 추가)

Android Notification with Full Screen

딩기 요트 명칭

Android App architecture: State holders and UI state

KiCad 시작하기 3 (새로운 소자 추가하기)

외동 휴게소(부산 방향) 추천 메뉴

Android Room database FTS

서브넷 마스크 계산하기