fixed SoftMaxTree:sharedClone (on cuda) bug