Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions framework/api/nn/test_PairwiseDistance.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_dygraph_positive_inf_norm():
res_out = np.array([1.0, 1.0])
res_grad = np.array([[1.0, 1.0, 1.0], [1.0, 1.0, 1.0]]) / 3
assert np.allclose(out, res_out)
# assert np.allclose(grad, res_grad)
assert np.allclose(grad, res_grad)


@pytest.mark.api_nn_PairwiseDistance_parameters
Expand All @@ -97,7 +97,7 @@ def test_dygraph_negative_inf_norm():
res_out = np.array([1.0, 1.0])
res_grad = np.array([[1.0, 1.0, 1.0], [1.0, 1.0, 1.0]]) / 3
assert np.allclose(out, res_out)
# assert np.allclose(grad, res_grad)
assert np.allclose(grad, res_grad)


@pytest.mark.api_nn_PairwiseDistance_vartype
Expand Down