今天看代码,有一句代码为
sequences = nested.map( lambda lhs, rhs: tf.concat([lhs[None], rhs], 0), first_output, other_outputs)

有一个None,这在普通的数组运算中并不能用,只在tensorflow中使用,作用是增加数组维度,即在数组外边加一层[]。
tensorflow list[None]
但是这个在随机数组中并不能用:
tensorflow list[None]
tensorflow list[None]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-02-10
  • 2021-06-20
  • 2021-10-15
相关资源
相似解决方案