Skip to content

Commit

Permalink
#7225 L2NormalizeVertex equals/hashCode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDBlack committed Mar 13, 2019
1 parent 1d996a2 commit 8fcbc9a
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.deeplearning4j.nn.conf.graph;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.val;
import org.deeplearning4j.nn.conf.inputs.InputType;
import org.deeplearning4j.nn.conf.inputs.InvalidInputTypeException;
Expand All @@ -37,6 +38,7 @@
* @author Alex Black (AlexDBlack)
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class L2NormalizeVertex extends GraphVertex {
public static final double DEFAULT_EPS = 1e-8;

Expand All @@ -59,18 +61,6 @@ public L2NormalizeVertex clone() {
return new L2NormalizeVertex(dimension, eps);
}

@Override
public boolean equals(Object o) {
if (!(o instanceof L2NormalizeVertex))
return false;
return ((L2NormalizeVertex) o).dimension == dimension;
}

@Override
public int hashCode() {
return 123081189;
}

@Override
public long numParams(boolean backprop) {
return 0;
Expand Down

0 comments on commit 8fcbc9a

Please sign in to comment.