[英]How to create tensorflow RaggedTensor from python list?
I have two-dimensional list (list of lists).我有二维列表(列表列表)。 I would like to create RaggedTensor from it.我想从中创建 RaggedTensor。
But here is no method to create RaggedTensor from python list.但是这里没有从 python 列表创建 RaggedTensor 的方法。
How to do it ?怎么做 ?
这很简单:
tf.ragged.constant(list)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.