Getting the following error again and again RecursionError Traceback (most recent call last)
in
1 tmp_array = np.arange(1, 10)
----> 2 x = tf_square(tmp_array)
3 print(“tf_square output:\n”, x)
4
5 # Expected output:
in tf_square(array)
8
9 ### START CODE HERE ###
—> 10 tf_squared_array = tf_square(array)
11 ### END CODE HERE ###
12 return tf_squared_array
… last 1 frames repeated, from the frame below …
in tf_square(array)
8
9 ### START CODE HERE ###
—> 10 tf_squared_array = tf_square(array)
11 ### END CODE HERE ###
12 return tf_squared_array
RecursionError: maximum recursion depth exceeded while calling a Python object
Please help urgently