code: def xavier(t):
      """Initialize the matrix parameter follow a Uniform distribution from
      [-sqrt(6/(fan_in + fan_out)), sqrt(6/(fan_in + fan_out))].
  
      Args:
          t (Tensor): the parater tensor
      """
  
      scale = math.sqrt(6.0 / (t.shape[0] + t.shape[1]))
      t.uniform(-scale, scale)
  
file_path: singa/python/singa/initializer.py
imports: from __future__ import division
  import math
  import numpy
  from deprecated import deprecated
label_desc: Use image node_id 10 for calling a global function with example usage: xavier(t) without return types