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/25 18:55:13 UTC

[GitHub] piiswrong closed pull request #9561: fix CreateOp of slice_channel to accept dtypes of uint8 and int32

piiswrong closed pull request #9561: fix CreateOp of slice_channel to accept dtypes of uint8 and int32
URL: https://github.com/apache/incubator-mxnet/pull/9561
 
 
   

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/src/operator/slice_channel.cu b/src/operator/slice_channel.cu
index adc8741a5a..bc5ca52c2a 100644
--- a/src/operator/slice_channel.cu
+++ b/src/operator/slice_channel.cu
@@ -31,7 +31,7 @@ namespace op {
 template<>
 Operator* CreateOp<gpu>(SliceChannelParam param, int dtype) {
   Operator* op = nullptr;
-  MSHADOW_REAL_TYPE_SWITCH(dtype, DType, {
+  MSHADOW_TYPE_SWITCH(dtype, DType, {
     op = new SliceChannelOp<gpu, DType>(param);
   })
   return op;


 

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