Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

fix CreateOp of altering shape operations to accept dtypes of uint8 and int32 #9569

Merged
merged 4 commits into from
Jan 26, 2018
Merged

Conversation

Soonhwan-Kwon
Copy link
Contributor

@Soonhwan-Kwon Soonhwan-Kwon commented Jan 26, 2018

Description

Same context as #9561,
to deal with quantization in future,
operators(sequence_last, sequence_mask, sequence_revert,swapaxis) should have capability to accept uint8 and int32.
Like slice_channel, it can be achieved by changing MSHADOW_REAL_TYPE_SWITCH to MSHADOW_TYPE_SWITCH as concat(https://github.com/apache/incubator-mxnet/blob/d2a856a3a2abb4e72edc301b8b821f0b75f30722/src/operator/concat.cu)
I tested them and it worked well both cpu,gpu setting,

And there was wrong argument y appeared in document of sequence_last,sequence_mask,sequence_reverse instead of right argument sequence_length, so I fixed it also.

@piiswrong piiswrong merged commit 55163bd into apache:master Jan 26, 2018
rahul003 pushed a commit to rahul003/mxnet that referenced this pull request Jun 4, 2018
…nd int32 (apache#9569)

* fix CreateOp of shape related operation to accept dtypes of uint8 and int32

* fix wrong argument y to sequence_length in sequence_reverse's api document

* fix wrong argument y to sequence_length in api doc

fix wrong argument y to sequence_length in api doc

* remove y in api document
zheng-da pushed a commit to zheng-da/incubator-mxnet that referenced this pull request Jun 28, 2018
…nd int32 (apache#9569)

* fix CreateOp of shape related operation to accept dtypes of uint8 and int32

* fix wrong argument y to sequence_length in sequence_reverse's api document

* fix wrong argument y to sequence_length in api doc

fix wrong argument y to sequence_length in api doc

* remove y in api document
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants