爪哇驿站

关注

tensorflow reverse_sequence实例

爪哇驿站

关注

阅读 68

2022-07-27


import tensorflow as tf

a = tf.constant([[1,2,3], [1,2,3], [1,2,3]])
l = tf.constant([2,2,2],tf.int64)
b = tf.reverse_sequence(a,seq_lengths=l,batch_dim = 0,seq_dim = 1)
c = tf.Print(b,[b],summarize=9)
with tf.Session() as sess:
sess.run(c)

tensorflow reverse_sequence实例_tensorflow


相关推荐

颜路在路上

tf.reverse_sequence

颜路在路上 94 0 0

爱情锦囊

pytorch pack_padded_sequence 实例

爱情锦囊 72 0 0

彭维盛

tensorflow 点乘 实例

彭维盛 200 0 0

前行的跋涉者

tensorflow for循环 while循环 实例

前行的跋涉者 98 0 0

高子歌

tensorflow 单机多GPU 实例

高子歌 110 0 0

是归人不是过客

tensorflow tf.where 代码实例

是归人不是过客 84 0 0

扬帆远航_df7c

TensorFlow图像多标签分类实例

扬帆远航_df7c 45 0 0

weipeng2k

tensorflow 单机多GPU mnist实例

weipeng2k 67 0 0

SPEIKE

tensorflow 取 sub-tensor 实例

SPEIKE 145 0 0

彩虹_bd07

TensorFlow教程(十二) 随机数实例

彩虹_bd07 106 0 0

精彩评论(0)

0 0 举报