From 69859718a0887bbe08c3ff106f2db8232cdd942a Mon Sep 17 00:00:00 2001 From: ceci3 <592712189@qq.com> Date: Wed, 6 Mar 2019 12:45:19 +0000 Subject: [PATCH] test=develop, change labels name --- python/paddle/fluid/tests/unittests/test_npair_loss_op.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_npair_loss_op.py b/python/paddle/fluid/tests/unittests/test_npair_loss_op.py index ab69d3ad753..0d7beba7525 100644 --- a/python/paddle/fluid/tests/unittests/test_npair_loss_op.py +++ b/python/paddle/fluid/tests/unittests/test_npair_loss_op.py @@ -90,7 +90,7 @@ class TestNpairLossOp(unittest.TestCase): dtype=self.dtype, append_batch_size=False) labels_tensor = fluid.layers.data( - name='labels', + name='labels_t', shape=[num_data], dtype=self.dtype, append_batch_size=False) @@ -103,7 +103,7 @@ class TestNpairLossOp(unittest.TestCase): out_tensor = exe.run(feed={ 'anchor': embeddings_anchor, 'positive': embeddings_positive, - 'labels': row_labels + 'labels_t': row_labels }, fetch_list=[npair_loss_op.name]) -- GitLab