ecsimsw

Data flow graph 본문

Data flow graph

JinHwan Kim 2019. 3. 16. 05:36

Data flow graph

- tensorflow의 의미와 Data flow graph에 관련된 기본적인 용어를 공부하였다.
  홍콩 과기대의 김성훈 교수님의 유튜브 강의로 공부하였다. [Sung kim] Lec 00 - Machine/Deep learning 수업의 개요와 일정
  • Data flow graph
    - 데이터 플로우 그래프는 계산이나 데이터의 흐름을 node / edge를 사용하여 표현하는 그래프이다.

    node : operation으로 계산을 수행하고 결과로 텐서를 반환 edge : Tensor로 다차원 데이터 배열 session : 실행시간의 제어와 상태를 캡슐화한다.
  • example
      예제) a, b, c에 각각 1, 2 상수와 a,b를 더한 값을 대입하고 sess 객체를 생성하고 run 메소드를 통해 실행한다.
    import tensorflow as tf a = tf.constant(1) b = tf.constant(2) c = tf.add(a,b) sess = tf.Session() sess.run(c)

'Machine Learning > Tensorflow' 카테고리의 다른 글

Placeholder / Variable  (0) 2019.03.17
Multi-variable / Matrix  (0) 2019.03.16
Linear Regression / Gradient descent algorithm  (0) 2019.03.16
Supervised / Unsupervised  (0) 2019.03.15
Installation tensorflow  (0) 2019.03.14
Comments