Home | History | Annotate | Download | only in util

Lines Matching refs:shapes

40 def as_dense_shapes(shapes, classes):
41 """Converts sparse tensor shapes to their physical shapes.
44 shapes: a structure of shapes to convert.
48 a structure matching the nested structure of `shapes`, containing
50 `tf.SparseTensor` and matching contents of `shapes` otherwise
52 ret = nest.pack_sequence_as(shapes, [
54 for shape, c in zip(nest.flatten(shapes), nest.flatten(classes))
78 def deserialize_sparse_tensors(tensors, types, shapes, classes):
84 shapes: a structure that holds information about shapes of `tensors`
95 nest.flatten(tensors), nest.flatten(types), nest.flatten(shapes),