message: Remove device scope in tf.summary.write() as summary recording logic already
  has device scope.
diff: @@ -664,7 +664,6 @@ def write(tag, tensor, step=None, metadata=None, name=None):
  with ops.control_dependencies([write_summary_op]):
  return constant_op.constant(True)
  - with ops.device("cpu:0"):
  op = smart_cond.smart_cond(
  _should_record_summaries_v2(), record, _nothing, name="summary_cond")
  if not context.executing_eagerly():
  