class_docstr: Identical to the TestOptimizeLinear in tests_tf/test_attacks.
class_docstr_tok: ["Identical","to","the","TestOptimizeLinear","in","tests_tf\/test_attacks","."]
code: def setUp(self):
      super(TestOptimizeLinear, self).setUp()
      self.clip_eta = utils.clip_eta
      self.rand_grad = torch.randn(100, 3, 2)
      self.rand_eta = torch.randn(100, 3, 2)
      self.red_ind = list(range(1, len(self.rand_grad.size())))
      # eps needs to be nonnegative
      self.eps_list = [0, 0.1, 1.0, 3]
  
file_path: cleverhans/cleverhans/torch/tests/test_utils.py
imports: import numpy
  import torch
  import cleverhans.torch.utils
  from cleverhans.devtools.checks import CleverHansTest
label_desc: Use image node_id 1 for calling the TestOptimizeLinear obj's underlying member method code with example usage: obj.setUp() without return types