message: Remove useless hasattr check in Layer.get_config.
  The hasattr(self, 'dtype') check would only fail if super().__init__ is not called. If not called, Layer.get_config and most other methods already raise errors anyway.
diff: @@ -487,9 +487,6 @@ class Layer(module.Module):
  config = {'name': self.name, 'trainable': self.trainable}
  if hasattr(self, '_batch_input_shape'):
  config['batch_input_shape'] = self._batch_input_shape
  - # TODO(reedwm): Remove the hasattr(self, 'dtype') check. All layers have a
  - # dtype.
  - if hasattr(self, 'dtype'):
  config['dtype'] = policy.serialize(self._dtype_policy)
  if hasattr(self, 'dynamic'):
  # Only include `dynamic` in the `config` if it is `True`
  