class_docstr: Tests for the Dropout class
class_docstr_tok: ["Tests","for","the","Dropout","class"]
docstr: test_no_drop: Make sure dropout does nothing by default
  (so it does not cause stochasticity at test time)
docstr_tok: ["test_no_drop",":","Make","sure","dropout","does","nothing","by","default","(","so","it","does","not","cause","stochasticity","at","test","time",")"]
code: def test_no_drop(self):
      """test_no_drop: Make sure dropout does nothing by default
      (so it does not cause stochasticity at test time)"""
  
      model = MLP(input_shape=[1, 1], layers=[Dropout(name="output")])
      x = tf.constant([[1]], dtype=tf.float32)
      y = model.get_layer(x, "output")
      sess = tf.Session()
      # Do multiple runs because dropout is stochastic
      for _ in range(10):
          y_value = sess.run(y)
          self.assertClose(y_value, 1.0)
  
file_path: cleverhans/cleverhans_v3.1.0/tests_tf/test_picklable_model.py
imports: import numpy
  import tensorflow
  from cleverhans.devtools.checks import CleverHansTest
  from cleverhans.picklable_model import Dropout
  from cleverhans.picklable_model import MLP
  from cleverhans.picklable_model import PerImageStandardize
label_desc: Use image node_id 1 for calling the TestDropout obj's underlying member method code with example usage: obj.test_no_drop() without return types