Skip to content

Commit 37190b7

Browse files
committed
small fix.
1 parent 29fc94b commit 37190b7

File tree

1 file changed

+2
-2
lines changed
  • python/paddle/trainer_config_helpers

1 file changed

+2
-2
lines changed

python/paddle/trainer_config_helpers/layers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,7 +2341,7 @@ def cos_sim(a, b, scale=1, size=1, name=None, layer_attr=None):
23412341
def l2_distance_layer(x, y, name=None, layer_attr=None):
23422342
"""
23432343
This layer calculates and returns the Euclidean distance between two input
2344-
vectors a and b. The equation is as follows:
2344+
vectors x and y. The equation is as follows:
23452345
23462346
.. math::
23472347
l2_distance(\\mathbf{x}, \\mathbf{y}) = \\sqrt{\\sum_{i=1}^D(x_i - y_i)}
@@ -2372,7 +2372,7 @@ def l2_distance_layer(x, y, name=None, layer_attr=None):
23722372
:rtype: LayerOutput
23732373
"""
23742374

2375-
assert isinstance(x, LayerOutput) and isinstance(x, LayerOutput)
2375+
assert isinstance(x, LayerOutput) and isinstance(y, LayerOutput)
23762376
Layer(
23772377
name=name,
23782378
type=LayerType.L2_DISTANCE,

0 commit comments

Comments
 (0)