r
=
tf.ragged.constant([[
11
,
12
], [
21
,
22
,
23
], [], [
41
]])
print
(r)
print
(r[
1
])
print
(r[
1
:
2
])
<tf.RaggedTensor [[
11
,
12
], [
21
,
22
,
23
], [], [
41
]]>
tf.Tensor([
21
22
23
], shape
=
(
3
,), dtype
=
int32)
<tf.RaggedTensor [[
21
,
22
,
23
]]>