pythontensorflowragged

How to create tensorflow RaggedTensor from python list?


I have two-dimensional list (list of lists). I would like to create RaggedTensor from it.

But here is no method to create RaggedTensor from python list.

How to do it ?


Solution

  • Its simple:

    tf.ragged.constant(list)