Moved tests out of run_in_graph_and_eager_mode in contrastive_test (#1464)
Moved tests out of run_in_graph_and_eager_mode in contrastive_test (#1464)

* Moved tests out of run_in_graph_and_eager_mode in contrastive_test

* replace assert_array_almost_equal

* reduction is none test

* use assert_allclose

* format
tensorflow/addons,tensorflow/addons,tensorflow/addons