Skip to content

Commit

Permalink
Properly check for conv/sub helper supported
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDBlack committed Feb 25, 2019
1 parent 688be3a commit 72a0251
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Expand Up @@ -96,6 +96,10 @@ void initializeHelper() {
helper = new MKLDNNConvHelper();
log.info("Created MKLDNNConvHelper");
}
if (helper != null && !helper.checkSupported()) {
log.debug("Removed helper {} as not supported", helper.getClass());
helper = null;
}
}

@Override
Expand Down
Expand Up @@ -94,10 +94,13 @@ void initializeHelper() {
}
}
} else if("CPU".equalsIgnoreCase(backend) ){

//TODO check if native libraries are available
helper = new MKLDNNSubsamplingHelper();
log.info("Created MKL-DNN helper");
log.info("Created MKL-DNN helper: MKLDNNSubsamplingHelper");
}
if (helper != null && !helper.checkSupported()) {
log.debug("Removed helper {} as not supported", helper.getClass());
helper = null;
}
}

Expand Down

0 comments on commit 72a0251

Please sign in to comment.