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/08/18 15:40:53 UTC

[GitHub] zheng-da commented on issue #12209: Make the output format of control flow operators consistent with their UDFs

zheng-da commented on issue #12209: Make the output format of control flow operators consistent with their UDFs
URL: https://github.com/apache/incubator-mxnet/pull/12209#issuecomment-414066909
 
 
   i can give a try. but the cycle probably still exists.
   
   Sheng Zha <no...@github.com> 于 2018年8月17日周五 下午11:41写道:
   
   > *@szha* commented on this pull request.
   > ------------------------------
   >
   > In python/mxnet/ndarray/contrib.py
   > <https://github.com/apache/incubator-mxnet/pull/12209#discussion_r211067001>
   > :
   >
   > > @@ -98,6 +98,39 @@ def rand_zipfian(true_classes, num_sampled, range_max, ctx=None):
   >      return sampled_classes, expected_count_true, expected_count_sampled
   >  # pylint: enable=line-too-long
   >
   > +
   > +def _flatten(args, inout_str):
   > +    if isinstance(args, ndarray.NDArray):
   > +        return [args], int(0)
   > +
   > +    assert isinstance(args, (list, tuple)), \
   > +        "HybridBlock %s must be (nested) list of Symbol or NDArray, " \
   > +        "but got %s of type %s"%(inout_str, str(args), str(type(args)))
   >
   > how about base.py?
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/incubator-mxnet/pull/12209#discussion_r211067001>,
   > or mute the thread
   > <https://github.com/notifications/unsubscribe-auth/AAETUXpSUImXEmMmevI22vQDtTAgLkIzks5uR7cdgaJpZM4WAV3D>
   > .
   >
   

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