I need to multiply a tensor variable by a tensor constant
(for example, convolution filter multiply by a constant mask)
But, torch.mul() only accept two tensors or two variables.
What I did what was convert constant --> Variable(tensor, requires_grad=False)
Is this the recommended way to do math operation between constant tensor and variable tensor?
Thanks!