|
|
|
|
|
by fdrdrive
3257 days ago
|
|
I don't follow. tf.scan will execute as many time steps as there are elements in the input series, which is the same behavior you'd get with tf.while_loop or tf.dynamic_rnn. It does not execute for a fixed number of time steps, which I think is what you're implying? The difference from using tf.while_loop directly is that tf.scan handles the logistics of an accumulator to keep track of hidden states, so you don't have to implement that piece yourself. As you say, tf.scan uses tf.while_loop internally; it's not particularly different from something you might build using tf.while_loop yourself. |
|