message: Fix error messages in ops.register_dense_tensor_like_type().
diff: @@ -157,14 +157,18 @@ def register_dense_tensor_like_type(tensor_type):
  """
  try:
  if not isinstance(tensor_type.name, property):
  - raise TypeError("Type %s does not define a `name` property")
  + raise TypeError("Type %s does not define a `name` property" %
  + tensor_type.__name__)
  except AttributeError:
  - raise TypeError("Type %s does not define a `name` property")
  + raise TypeError("Type %s does not define a `name` property" %
  + tensor_type.__name__)
  try:
  if not isinstance(tensor_type.dtype, property):
  - raise TypeError("Type %s does not define a `dtype` property")
  + raise TypeError("Type %s does not define a `dtype` property" %
  + tensor_type.__name__)
  except AttributeError:
  - raise TypeError("Type %s does not define a `dtype` property")
  + raise TypeError("Type %s does not define a `dtype` property" %
  + tensor_type.__name__)
  # We expect this list to be small, so choose quadratic complexity
  # for registration, so that we have a tuple that can be used for
  # more efficient `isinstance` checks later.
  