StoryCode

데이타 타입

인공지능,AI,학습,ML,Tensorflow, Cafee2,MLFlow/Tensorflow
반응형

[ 참조 ] www.tensorflow.org


- tensorflow.placeholder(dtype, shape, name)

   : Method

   : input data 를 담아두고 tensor 매핑.

   : graph 를 만들지 않는다.


   dtype : tf.float32

   shape : input data shape


- variables

   : Object

   : 생성자 __init__(initial_value, trainable.트레이닝할거냐?, ...)

   weight matrix 가 variables 로 만들어진다.


- tensorflow.constant

   : 상수


- Sample Code


import tensorflow as tf

ph =tf.placeholder(tf.float32, shape=[3,3])

var = tf.variable([1,2,3,4,5], dtype.float32)

const = tf.constant([10, 20, 30, 40, 50], dtype=tf.float32)

print ph

print var

print var

































반응형