공식사이트 : https://www.tensorflow.org/?hl=ko


  • tf.placeholderrnn

  1. dtype: The type of elements in the tensor to be fed.
  2. shape: The shape of the tensor to be fed (optional). If the shape is not specified, you can feed a tensor of any shape.
  3. name:  A name for the operation (optional).

  • tf.contrib.rnn.BasicLSTMCell
    일부 사용하는 arg 를 기입해놈
  1. num_units : int 형의 유닛 갯수
  2. state_is_tuple : true 일시 두개의 state 를 돌려주고 false 일시 하나의 state로 돌려준다.
  •  tf.nn.dynamic_rnn
 arg

cell,

inputs,

sequence_length=None,

initial_state=None,

dtype=None,

parallel_iterations=None,

swap_memory=False,

time_manjor=False,

scope=None 

  1. cell : 

returns:

 (outputs,state)

  1. outputs : The RNN output Tensor
 time_major == False (default) 일 경우 Tensor shaped : [batch_size, max_time, cell.output_size]
 time_major == True 일경우 [max_time, batch_size, cell.output_size]

shape 모양이 바뀐다. 


'딥러닝' 카테고리의 다른 글

[딥러닝] 1.Tensorflow 개발환경설정  (0) 2018.05.23

+ Recent posts