code: def he_uniform(self, dev):
      def init(shape):
          fan_in, _ = self.compute_fan(shape)
          limit = np.sqrt(6 / fan_in)
          return limit
  
      self.t1.to_device(dev)
      initializer.he_uniform(self.t1)
      np_t1 = tensor.to_numpy(self.t1)
      limit = init(self.t1.shape)
      self.assertAlmostEqual(np_t1.max(), limit, delta=limit / 10)
      self.assertAlmostEqual(np_t1.min(), -limit, delta=limit / 10)
      self.assertAlmostEqual(np_t1.mean(), 0, delta=limit / 10)
  
      self.t2.to_device(dev)
      initializer.he_uniform(self.t2)
      np_t2 = tensor.to_numpy(self.t2)
      limit = init(self.t2.shape)
      self.assertAlmostEqual(np_t2.max(), limit, delta=limit / 10)
      self.assertAlmostEqual(np_t2.min(), -limit, delta=limit / 10)
      self.assertAlmostEqual(np_t2.mean(), 0, delta=limit / 10)
  
      self.t3.to_device(dev)
      initializer.he_uniform(self.t3)
      np_t3 = tensor.to_numpy(self.t3)
      limit = init(self.t3.shape)
      self.assertAlmostEqual(np_t3.max(), limit, delta=limit / 10)
      self.assertAlmostEqual(np_t3.min(), -limit, delta=limit / 10)
      self.assertAlmostEqual(np_t3.mean(), 0, delta=limit / 10)
  
file_path: singa/test/python/test_initializer.py
imports: from singa import initializer
  from singa import tensor
  from singa import singa_wrap
  from cuda_helper import gpu_dev, cpu_dev
  import unittest
  import numpy
label_desc: Use image node_id 3 for calling the TestInitializer obj's underlying member method code with example usage: obj.he_uniform(dev) and returns: limit