vinx13 commented on a change in pull request #4465: [AutoTVM] Tune softmax CUDA schedule
URL: https://github.com/apache/incubator-tvm/pull/4465#discussion_r353874565
##########
File path: python/tvm/autotvm/task/topi_integration.py
##########
@@ -281,6 +284,21 @@ def _topi_nn_conv2d_NCHWc(*args, **kwargs):
s = topi.generic.schedule_conv2d_NCHWc([C])
return s, [A, W, C]
+ @register("topi_nn_softmax")
+ def _topi_nn_softmax(*args, **kwargs):
+ assert not kwargs, "Do not support kwargs in template function call"
+ args = deserialize_args(args)
+ if len(args) > 1:
+ x, axis = args[:2]
+ else:
+ x = args[0]
+ axis = None
+ C = topi.nn.softmax(*args, **kwargs)
+ s = topi.generic.schedule_softmax([C])
+ if axis is not None:
+ return s, [x, axis, C]
Review comment:
`axis` is not a tensor, so we don't need to return it here
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
|