Pushing with some changes and bug fix in SAMP for non-contiguous tensors in float case