aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/keras
diff options
context:
space:
mode:
authorGravatar Gautam <gautamrbharadwaj@gmail.com>2018-10-02 11:56:06 +0530
committerGravatar GitHub <noreply@github.com>2018-10-02 11:56:06 +0530
commit38808119e9d5f8ad24bb414aab281e0fa3fde6dc (patch)
tree51760116582b92e3e1a9376cac9fd317f4695141 /tensorflow/python/keras
parent9884cb36290664593682d235ce0d5e1925e3fa23 (diff)
Update backend.py
Adding missing import files in the commented examples. When trying out that particular example in commented section the TensorFlow and bumpy imports are missing
Diffstat (limited to 'tensorflow/python/keras')
-rw-r--r--tensorflow/python/keras/backend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/python/keras/backend.py b/tensorflow/python/keras/backend.py
index 584facc859..79ca4beb73 100644
--- a/tensorflow/python/keras/backend.py
+++ b/tensorflow/python/keras/backend.py
@@ -773,6 +773,8 @@ def is_keras_tensor(x):
Examples:
```python
+ >>> import tensorflow as tf
+ >>> import numpy
>>> from keras import backend as K
>>> from keras.layers import Input, Dense
>>> np_var = numpy.array([1, 2])