docstr: Pass an input through a Dropout layer
  that keeps all of the input and test
  that all of the output values are non-zero.
docstr_tok: ["Pass","an","input","through","a","Dropout","layer","that","keeps","all","of","the","input","and","test","that","all","of","the","output","values","are","non-zero","."]
code: def test_on_dropout_1_0(self):
      """
      Pass an input through a Dropout layer
      that keeps all of the input and test
      that all of the output values are non-zero.
      """
  
      drop_input = jn.array([[1.0, 2.0, 3.0, 4.0, 5.0, 6.0]])
      keep = 1.0
      dropout_layer = objax.nn.Dropout(keep)
      training = True
      drop_output = dropout_layer(drop_input, training)
      self.assertEqual(jn.count_nonzero(drop_output), 6)
      self.assertTrue(jn.array_equal(drop_input, drop_output))
  
file_path: objax/tests/dropout.py
imports: import unittest
  import jax.numpy
  import objax
  from objax import random
label_desc: Use image node_id 3 for calling the TestDropout obj's underlying member method code with example usage: obj.test_on_dropout_1_0() without return types