class_docstr: Envelope function that ensures a smooth cutoff
class_docstr_tok: ["Envelope","function","that","ensures","a","smooth","cutoff"]
code: def forward(self, x):
      # Envelope function divided by r
      x_p_0 = x.pow(self.p - 1)
      x_p_1 = x_p_0 * x
      x_p_2 = x_p_1 * x
      env_val = 1 / x + self.a * x_p_0 + self.b * x_p_1 + self.c * x_p_2
      return env_val
  
imports: import torch.nn
label_desc: Use image node_id 2 for calling the Envelope obj's underlying member method code with example usage: obj.forward(x) and returns: env_val