Andrey
Andrey

Reputation: 6377

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 ?

Upvotes: 0

Views: 473

Answers (1)

Andrey
Andrey

Reputation: 6377

Its simple:

tf.ragged.constant(list)

Upvotes: 2

Related Questions