Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove complex number classes/methods #6031

Merged
merged 8 commits into from Aug 1, 2018
Prev

Small DL4J complex number changes given ND4J changes

  • Loading branch information...
AlexDBlack committed Aug 1, 2018
commit 2884a6e525a1757b4e70c39fe2a8d55ceeb622ca
@@ -40,7 +40,6 @@
import org.deeplearning4j.optimize.stepfunctions.NegativeDefaultStepFunction;
import org.junit.Test;
import org.nd4j.linalg.activations.Activation;
import org.nd4j.linalg.api.complex.IComplexNumber;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.api.ops.impl.transforms.Cos;
import org.nd4j.linalg.api.ops.impl.transforms.Sin;
@@ -520,11 +519,6 @@ public double epsThreshold() {
public Boolean apply(Number input) {
return Math.abs(input.doubleValue()) > 5.12;
}

@Override
public Boolean apply(IComplexNumber input) {
throw new UnsupportedOperationException();
}
});

int nExceeds512 = paramExceeds512.sum(Integer.MAX_VALUE).getInt(0);
@@ -723,11 +717,6 @@ public double epsThreshold() {
public Boolean apply(Number input) {
return Math.abs(input.doubleValue()) > 5.0;
}

@Override
public Boolean apply(IComplexNumber input) {
throw new UnsupportedOperationException();
}
});

int nExceeds5 = paramExceeds5.sum(Integer.MAX_VALUE).getInt(0);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.