Update text length for pylint error

This commit is contained in:
JaehunRyu 2020-02-11 14:28:13 +09:00
parent d7e98863dd
commit 1022952737
2 changed files with 7 additions and 5 deletions
configure
tensorflow/python/summary/writer

2
configure vendored
View File

@ -4,7 +4,7 @@ set -e
set -o pipefail
if [ -z "$PYTHON_BIN_PATH" ]; then
PYTHON_BIN_PATH=$(which python || which python3 || true)
PYTHON_BIN_PATH=$( which python3 || true)
fi
# Set all env variables

View File

@ -349,15 +349,17 @@ class FileWriter(SummaryToEventTransformer):
RuntimeError: If called with eager execution enabled.
@compatibility(eager)
`v1.summary.FileWriter` is not compatible with eager execution. To write TensorBoard
summaries under eager execution, use `tf.summary.create_file_writer` or a
`with v1.Graph().as_default():` context.
`v1.summary.FileWriter` is not compatible with eager execution.
To write TensorBoard summaries under eager execution,
use `tf.summary.create_file_writer` or
a `with v1.Graph().as_default():` context.
@end_compatibility
"""
if context.executing_eagerly():
raise RuntimeError(
"v1.summary.FileWriter is not compatible with eager execution. "
"Use `tf.summary.create_file_writer`, or a `with v1.Graph().as_default():` context")
"Use `tf.summary.create_file_writer`,"
"or a `with v1.Graph().as_default():` context")
if session is not None:
event_writer = EventFileWriterV2(
session, logdir, max_queue, flush_secs, filename_suffix)