TensorFlow의 설치 및 기본적인 operation - accidentlywoo/legacyVue GitHub Wiki
TensorFlow의 설치 및 기본적인 operation
TensorFlow
- TensorFlow is an open source software library for numerical computation using flow graphs.
- Python
What is a Data Flow Graph
- Nodes in the graph represent mathematical operations
- Edges represent the multidimensional data arrays (tensors) communicated between them.
TensorflowMechanics
- Build graph using Tensorflow operations
- feed data and run graph(operation) ex)sess.run(op)
- update variables in the graph(and return values)
Tensor Ranks(차원), Shapes(요소 갯수), and Types
- Rank
: 0 - Scalar ex) s = 483, 1 - Vector ex) v = [1.1, 2.2, 3.3]
: 2 - Matrix ex) m = [[1,2,3],[4,5,6],[7,8,9]]
: 3 - 3-Tensor , n - n-Tensor ...
- Shapes
: 0 - [] , 1 - [D0], 2 - [D0, D1], 3 - [D0, D1, D2]
- Types
: DT_FLOAT - tf.float32, DT_INT32 - tf.int32