Commit 5b63ee85 authored by Derek Murray's avatar Derek Murray Committed by TensorFlower Gardener
Browse files

[tf.data] Add a `Structure` class that represents output_{types,shapes,classes}.

This change adds the skeleton implementation of `Structure` for
tensors, sparse tensors, and nests. Future changes will (i) add
structure representations for `Dataset` and `Optional`, (ii) add
support for registering custom types, and (iii) switch
`Dataset`, `Iterator`, and `Optional` to use `Structure` internally.

PiperOrigin-RevId: 209281967
parent a6d62ffe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment