Change np.array to tf.constant since np.array.
Change np.array to tf.constant since np.array.

np.array fails with no 'module' get_shape().
tensorflow/docs,tensorflow/docs,tensorflow/docs,tensorflow/docs-l10n