Added some numpy implementation in the documentation.
@@ -593,6 +593,8 @@ def int_shape(x):
>>> K.int_shape(kvar)
(2, 2)
```
+
+ {{np_implementation}}
"""
if hasattr(x, '_keras_shape'):
return x._keras_shape
@@ -622,6 +624,8 @@ def ndim(x):
>>> K.ndim(kvar)
2
```
+
+ {{np_implementation}}
"""
dims = x.get_shape()._dims
if dims is not None:
@@ -1685,6 +1689,8 @@ def equal(x, y):
# Returns
A bool tensor.
+
+ {{np_implementation}}
"""
return tf.equal(x, y)
@@ -1698,6 +1704,8 @@ def not_equal(x, y):
# Returns
A bool tensor.
+
+ {{np_implementation}}
"""
return tf.not_equal(x, y)
@@ -1711,6 +1719,8 @@ def greater(x, y):
# Returns
A bool tensor.
+
+ {{np_implementation}}
"""
return tf.greater(x, y)
@@ -1724,6 +1734,8 @@ def greater_equal(x, y):
# Returns
A bool tensor.
+
+ {{np_implementation}}
"""
return tf.greater_equal(x, y)
@@ -1737,6 +1749,8 @@ def less(x, y):
# Returns
A bool tensor.
+
+ {{np_implementation}}
"""
return tf.less(x, y)
@@ -1750,6 +1764,8 @@ def less_equal(x, y):
# Returns
A bool tensor.
+
+ {{np_implementation}}
"""
return tf.less_equal(x, y)
@@ -1763,6 +1779,8 @@ def maximum(x, y):
# Returns
A tensor.
+
+ {{np_implementation}}
"""
return tf.maximum(x, y)
@@ -1776,6 +1794,8 @@ def minimum(x, y):
# Returns
A tensor.
+
+ {{np_implementation}}
"""
return tf.minimum(x, y)
