Fixing logic error in printing whether GPU calculation was falling back to CPU

This commit is contained in:
Joseph Lizier 2021-10-08 11:28:37 +11:00
parent 898a04904c
commit 21ae0bdeaa
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ public abstract class MutualInfoCalculatorMultiVariateKraskov
int numTimePointsToComputeFor = (newObservations == null) ?
N : newObservations[0].length;
if (useGPU && (newObservations == null)) {
if (useGPU && (newObservations != null)) {
System.out.println("Cannot use GPU for estimation based on new observations -- falling back to CPU calculation...");
}