After upgrading from 0.4 to 0.4.1, I found that a C++ API I used to create variables is deprecated.
For example, in 0.4:
auto max_val = at::zeros(torch::CUDA(at::kFloat), {batch, channel, height});
How can I achieve the same thing in 0.4.1 with TensorOptions?