message: Fixed FileWriter docs and raise msg
diff: @@ -291,7 +291,7 @@ class FileWriter(SummaryToEventTransformer):
  When constructed with a `tf.compat.v1.Session` parameter, a `FileWriter`
  instead forms a compatibility layer over new graph-based summaries
  - (`tf.contrib.summary`) to facilitate the use of new summary writing with
  + to facilitate the use of new summary writing with
  pre-existing code that expects a `FileWriter` instance.
  This class is not thread-safe.
  @@ -328,15 +328,8 @@ class FileWriter(SummaryToEventTransformer):
  ```
  The `session` argument to the constructor makes the returned `FileWriter` a
  - compatibility layer over new graph-based summaries (`tf.contrib.summary`).
  - Crucially, this means the underlying writer resource and events file will
  - be shared with any other `FileWriter` using the same `session` and `logdir`,
  - and with any `tf.contrib.summary.SummaryWriter` in this session using the
  - the same shared resource name (which by default scoped to the logdir). If
  - no such resource exists, one will be created using the remaining arguments
  - to this constructor, but if one already exists those arguments are ignored.
  - In either case, ops will be added to `session.graph` to control the
  - underlying file writer resource. See `tf.contrib.summary` for more details.
  + compatibility layer over new graph-based summaries.
  +
  Args:
  logdir: A string. Directory where event file will be written.
  @@ -354,13 +347,13 @@ class FileWriter(SummaryToEventTransformer):
  @compatibility(eager)
  `FileWriter` is not compatible with eager execution. To write TensorBoard
  - summaries under eager execution, use `tf.contrib.summary` instead.
  + summaries under eager execution, use `tf.compat.v1.disable_eager_execution()` before the code.
  @end_compatibility
  """
  if context.executing_eagerly():
  raise RuntimeError(
  "tf.summary.FileWriter is not compatible with eager execution. "
  - "Use tf.contrib.summary instead.")
  + "Use `tf.compat.v1.disable_eager_execution()` before the code")
  if session is not None:
  event_writer = EventFileWriterV2(
  session, logdir, max_queue, flush_secs, filename_suffix)
  