TF OpDefBuilder: support compound types when using tuple restrictions.
TF OpDefBuilder: support compound types when using tuple restrictions.

Can now use type restrictions of the form
  'attr("T: {numbertype, bool, string}")'.

PiperOrigin-RevId: 168003571

tensorflow/docs,tensorflow/docs,tensorflow/docs,tensorflow/docs-l10n