thanks that actually, solved the issue.
yeah actually, its my mistake, I sent it as a Tensor instead of Variable, also thanks for the tip regarding optimization, will keep it mind,now the error is gone.