I don’t think so? There are two acceptable input formats, each clarified individually in the docs (scroll to the bottom of the torch.pow section):
torch.pow(tensor, float) which raises each tensor element to the power of the float
and
torch.pow(float, tensor) which raises a fixed float to the power of each element in the tensor.
Both return a tensor. torch.pow(numpy.e, tensor) would be functionally identical to torch.exp(tensor), and exp works with variables without any issues.