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/05/28 10:44:17 UTC
[GitHub] glingyan opened a new issue #11078: how to pass int as parameter to
HybridBlock
glingyan opened a new issue #11078: how to pass int as parameter to HybridBlock
URL: https://github.com/apache/incubator-mxnet/issues/11078
class hb1(gluon.HybridBlock):
def hybrid_forward(self, F, x, dims)
#get dims's value
out_dim = dims[0] #error raise TypeError('Symbol only support integer index to fetch i-th output')
class hb2(gluon.HybridBlock):
def __init__():
self.hb_nn = hb1()
def hybrid_forward(self, F, x)
out_dim = 5
out_dim_ndarray = mx.nd.array([out_dim])
self.hb_nn(x, out_dim_ndarray)
is there a api to pass int value to HybridBlock as a parameter
----------------------------------------------------------------
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