tfds.testing.RaggedConstant

View source on GitHub

Container of tf.ragged.constant values.

tfds.testing.RaggedConstant(
    *args, **kwargs
)

This simple wrapper forward the arguments to delay the RaggedTensor construction after @run_in_graph_and_eager_modes has been called. This is required to avoid incompabilities between Graph/eager.

Methods

build

View source

build()