I see that there is a freeze_module pass in 1.5.x and later in PyTorch.
Is there a similar pass in 1.4.x version of PyTorch which inlines the graph and resolves the weights and biases in the PyTorch graph into constants?
Does running _jit_pass_lower_graph(), and converting all the tensor parameters returned by this pass into constants in the graph have the same effect?