데이타 타입
인공지능,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
반응형
'인공지능,AI,학습,ML,Tensorflow, Cafee2,MLFlow > Tensorflow' 카테고리의 다른 글
Constant, Variable, Placeholder 의 차이점. (0) | 2018.06.11 |
---|---|
graph 및 기본 연산 샘플 (0) | 2018.06.11 |
1. Ubuntu 에 Tensorflow CPU Ver 설치 (0) | 2018.06.10 |
tensorflow 버전 확인하기 (0) | 2018.06.10 |
Conda - 가상환경 목록 및 삭제하기 (0) | 2018.06.10 |