About conversion of Variable(x, volatile = True) to C++

Hi, All,

I have a conversion issue of the following from python to C++

self.D(Variable(x, volatile = True), cuda=self.args.cuda, feature = True)[0]

I am wondering how shall I convert Variable(x, volatile = True) to C++ as:
self.D(Variable(x, true), args.cuda, true)[0] has triggered an error in Variable

Thanks.

Variables are deprecated since PyTorch 0.4 so you can use tensors now in the Python and C++ API.

Thanks for the comments. I appreciate that.