회원 로그인
|
Tensor Ranks, Shapes, Types
Tensorflow 랭크, 쉐입, 타입
Ranks
Rank | Math entity | Python 예제 |
---|---|---|
0 | Scalar (Magnitude only) | s = 483 |
1 | Vector (Magnitude and direction) | v = [1.1, 2.2, 3.3] |
2 | Matrix (Table of numbers) | m = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] |
3 | 3-Tensor (Cube of Numbers) | t = [[[2], [4], [6]], [[8], [10], [12]], [[14], [16], [18]]] |
n | n-Tensor (You get the idea.) | ...... |
Shapes
Rank | Shape | Dimension number | 예제 |
---|---|---|---|
0 | []] | 0-D | A 0-D tensor. A scalar |
1 | [D0] | 1-D | A 1-D tensor with shape [5] |
2 | [D0, D1] | 2-D | A 2-D tensor with shape [3, 4] |
3 | [D0, D1, D2] | 3-D | A 3-D tensor with shape [1, 4, 3] |
n | [D0, D1, ... Dn-1] | n-D | A tensor with shape [D0, D1, ... Dn-1] |
- 예제
- t = [[1,2], [4,5], [7,8]]
A 제일 안쪽의 엘리먼트가 2개
B 제일 안쪽의 엘리먼트를 감싸고 있는 차원이 3개
[B A] 또는 [B, A]
즉, [3 2] 또는 [3, 2]
Types (Data type)
Data type | Python type | Description |
---|---|---|
DT_FLOAT | tf.float32* | 32 bits floating point |
DT_DOUBLE | tf.float64 | 64 bits floating point |
DT_INT8 | tf.int8 | 8 bits signed integer |
DT_INT16 | tf.int16 | 16 bits signed integer |
DT_INT32 | tf.int32* | 32 bits signed integer |
DT_INT64 | tf.int64 | 64 bits signed integer |
댓글 0개
| 엮인글 0개
285개(3/15페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
245 | [Python] Shotgun Python API | 푸딩뱃살 | 2316 | 2019.10.15 14:55 |
244 | [Python] PyCharm의 Windows Defender | 푸딩뱃살 | 2654 | 2019.10.08 10:26 |
243 | [Python] PyCharm Install Packages Failed | 푸딩뱃살 | 3299 | 2019.10.04 11:56 |
242 | [Python] Jupyter notebook 패스워드 변경 | 푸딩뱃살 | 2845 | 2019.09.25 22:02 |
241 | [Python] jupyter notebook에서 opencv 사용 시 오류 | 푸딩뱃살 | 2762 | 2019.09.21 00:10 |
240 | [Python] PyCharm과 Anaconda 연동 / 한글 인코딩 설정 | 푸딩뱃살 | 2350 | 2019.09.09 18:33 |
239 | [CMake] CMake 소개 | 푸딩뱃살 | 1596 | 2019.05.23 15:19 |
238 | [CMake] 윈도우용 USD 빌드하기 | 푸딩뱃살 | 3125 | 2019.05.20 23:42 |
>> | [TensorFlow] Tensor Ranks, Shapes, Types | 푸딩뱃살 | 1891 | 2019.05.19 00:07 |
236 | [Python] pytube - 파이썬 유튜브 라이브러리 | 푸딩뱃살 | 2340 | 2019.04.24 14:34 |
235 | [Xcode] failed to connect to bundle 'com.회사명.앱명' | 푸딩뱃살 | 1602 | 2019.03.22 11:06 |
234 | [TensorFlow] TensorFlow Dev Summit 2019 영상 | 푸딩뱃살 | 1327 | 2019.03.13 10:33 |
233 | [Python] 파이썬 패키지 다운로드 | 푸딩뱃살 | 1994 | 2019.02.20 10:52 |
232 | [TensorFlow] TensorFlow은 무엇? | 푸딩뱃살 | 2900 | 2019.01.25 16:59 |
231 | [Python] Python Visual C++ 컴파일 버전 | 푸딩뱃살 | 2162 | 2019.01.24 18:25 |
230 | [TensorFlow] Jupyter Kernel Restarting | 푸딩뱃살 | 2508 | 2019.01.23 13:03 |
229 | [Python] Anaconda 설치 / 가상환경 / Jupyter 사용 | 푸딩뱃살 | 6080 | 2019.01.20 19:33 |
228 | [TensorFlow] TensorFlow 설치 | 푸딩뱃살 | 2690 | 2019.01.20 16:18 |
227 | [Python] OpenCV | 푸딩뱃살 | 744 | 2019.01.07 17:37 |
226 | [Python] Python AI | 푸딩뱃살 | 3103 | 2018.09.11 21:21 |