Issue 1:
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary):

TensorFlow version (use command below):

Python version:

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:

You can collect some of this information using our environment capture

script

You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior

Describe the expected behavior

Code to reproduce the issue

Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Issue 2:
I got an error message including a request that I report a bug.

Here's the code:

import numpy as np
import tensorflow as tf
import platform

print()
print(f"PLATFORM:\n---------\n{platform.platform()}")
print("\nTENSORFLOW:\n----------")
for a in tf.version.__all__:
print(f"{a}: {getattr(tf.version, a)}")

print(f"\nNUMPY:\n-----\n{np.version.version}")

print(f"\nPYTHON:\n-------\n{sys.version}\n")

np.random.seed(0)
tf.random.set_seed(0)

model = tf.keras.models.Sequential([
tf.keras.layers.Dense(1, activation="linear")
])
model.compile(optimizer="sgd", loss="mse")

x = np.random.uniform(size=(1,1))
y = np.random.uniform(size=(1,))
model.fit(x, y, epochs=1)

And here's the output, including system info, module versions, etc.

PLATFORM:
---------
Darwin-18.7.0-x86_64-i386-64bit

TENSORFLOW:
----------
COMPILER_VERSION: 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)
GIT_VERSION: v2.0.0-beta1-5101-gc75bb66a99
GRAPH_DEF_VERSION: 119
GRAPH_DEF_VERSION_MIN_CONSUMER: 0
GRAPH_DEF_VERSION_MIN_PRODUCER: 0
VERSION: 2.0.0-rc0

NUMPY:
-----
1.17.1

PYTHON:
-------
3.7.4 (default, Jul 9 2019, 18:13:23)
[Clang 10.0.1 (clang-1001.0.46.4)]

Train on 1 samples
WARNING:tensorflow:Entity <function Function._initialize_uninitialized_variables.<locals>.initialize_variables at 0x1492748c0> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: module 'gast' has no attribute 'Num'
WARNING: Entity <function Function._initialize_uninitialized_variables.<locals>.initialize_variables at 0x1492748c0> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: module 'gast' has no attribute 'Num'
1/1 [==============================] - 0s 157ms/sample - loss: 1.2336

<tensorflow.python.keras.callbacks.History at 0x14927b5d0>