Add dtype option for sharedX
add doc
Merge pull request #997 from memimo/sharedx

Add dtype option for sharedX