1. What is a Data Flow Graph?

  • Nodes in the graph represent mathmatical operations
  • Edges represent the multimensional data arrays(tensors) communicated between them

Nodes는 +, * 등 연산이고 선인 Edges가 data arrays이다. data arrays를 다른 말로 tensors인데 이 것이 돌아다닌다고 해서 tensorflow이다.

 

2. TensorFlow Hello World!

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1'
import tensorflow as tf

hello = tf.constant("Hello, TensorFlow!")

print(hello.numpy())  # b'Hello, TensorFlow!'

'''
위 코드를 실행하면 앞에 b가 붙는다.
b는 byte string 임을 나타낸다.
'''

 

3. TensorFlow Mechanics

이제 placeholder 사용 안해서 잘 모르겠음,,,

 

4. Tensor Ranks, Shapes, and Types

1, 2, ... n 차원 array라고 하는데 이를 tensorflow에서 Rank라고 한다.

 

Shape은 tensor를 설계할 때 중요하다.

 

 

 

+ Recent posts