class_docstr: Unconstrained threat model, :math:`S = [0, 1]^n`.
class_docstr_tok: ["Unconstrained","threat","model",",",":","math",":","`","S","=","[","0",",","1","]","^n","`","."]
docstr_tok: []
code: def random_perturb(self, x):
      """ """
      new_x = x + (ch.rand_like(x) - 0.5).renorm(
          p=2, dim=0, maxnorm=step_size
      )
      return ch.clamp(new_x, 0, 1)
  
imports: import torch
label_desc: Use image node_id 3 for calling the UnconstrainedStep obj's underlying member method code with example usage: obj.random_perturb(x) and returns: ch