You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/12/07 07:18:17 UTC

[GitHub] indhub commented on a change in pull request #8939: Minor changes to Caffe Translator

indhub commented on a change in pull request #8939: Minor changes to Caffe Translator
URL: https://github.com/apache/incubator-mxnet/pull/8939#discussion_r155445221
 
 

 ##########
 File path: tools/caffe_translator/src/main/java/io/mxnet/caffetranslator/Converter.java
 ##########
 @@ -157,19 +157,24 @@ public String generateMXNetCode() {
             // If the translator cannot translate this layer to an MXNet layer,
             // use CaffeOp or CaffeLoss instead.
             if (generator == null) {
-                if (layer.getType().toLowerCase().endsWith("loss")) {
+                if (layer.getType().toLowerCase().endsWith("loss") && !(layer.getType().equalsIgnoreCase("Accuracy"))) {
 
 Review comment:
   Will fix this code.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services