Can’t seem to figure out what the problem is. Here is the error. Please help
otImplementedError Traceback (most recent call last)
<ipython-input-78-92563cc0ea35> in <module>
24
25
---> 26 Emojify_V2_test(Emojify_V2)
<ipython-input-78-92563cc0ea35> in Emojify_V2_test(target)
18
19 maxLen = 4
---> 20 model = target((maxLen,), word_to_vec_map, word_to_index)
21
22 expectedModel = [['InputLayer', [(None, 4)], 0], ['Embedding', (None, 4, 2), 30], ['LSTM', (None, 4, 128), 67072, (None, 4, 2), 'tanh', True], ['Dropout', (None, 4, 128), 0, 0.5], ['LSTM', (None, 128), 131584, (None, 4, 128), 'tanh', False], ['Dropout', (None, 128), 0, 0.5], ['Dense', (None, 5), 645, 'linear'], ['Activation', (None, 5), 0]]
<ipython-input-77-4583610028a7> in Emojify_V2(input_shape, word_to_vec_map, word_to_index)
49
50 # Add a softmax activation
---> 51 X = softmax(X)
52
53
~/work/W2A2/emo_utils.py in softmax(x)
27 def softmax(x):
28 """Compute softmax values for each sets of scores in x."""
---> 29 e_x = np.exp(x - np.max(x))
30 return e_x / e_x.sum()
31
<__array_function__ internals> in amax(*args, **kwargs)
/opt/conda/lib/python3.7/site-packages/numpy/core/fromnumeric.py in amax(a, axis, out, keepdims, initial, where)
2666 """
2667 return _wrapreduction(a, np.maximum, 'max', axis, None, out,
-> 2668 keepdims=keepdims, initial=initial, where=where)
2669
2670
/opt/conda/lib/python3.7/site-packages/numpy/core/fromnumeric.py in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs)
88 return reduction(axis=axis, out=out, **passkwargs)
89
---> 90 return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
91
92
/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in __array__(self)
846 "Cannot convert a symbolic Tensor ({}) to a numpy array."
847 " This error may indicate that you're trying to pass a Tensor to"
--> 848 " a NumPy call, which is not supported".format(self.name))
849
850 def __len__(self):
NotImplementedError: Cannot convert a symbolic Tensor (dense_10/BiasAdd:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported