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 2018/01/31 20:11:27 UTC

[GitHub] piiswrong closed pull request #8484: MXNet-to-CoreML module: Fixed KeyError for Reshape

piiswrong closed pull request #8484: MXNet-to-CoreML module: Fixed KeyError for Reshape
URL: https://github.com/apache/incubator-mxnet/pull/8484
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tools/coreml/converter/_layers.py b/tools/coreml/converter/_layers.py
index 29562aa6a9..a8a8c1dcf8 100644
--- a/tools/coreml/converter/_layers.py
+++ b/tools/coreml/converter/_layers.py
@@ -75,7 +75,7 @@ def convert_reshape(net, node, module, builder):
     """
     input_name, output_name = _get_input_output_name(net, node)
     name = node['name']
-    target_shape = node['shape']
+    target_shape = literal_eval(node['attr']['shape'])
 
     if any(item <= 0 for item in target_shape):
         raise NotImplementedError('Special dimensional values less than or equal to 0 are not supported yet.'


 

----------------------------------------------------------------
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