(self, param)
Fill the provided tensor using the Orthonormal method.

        Args:
            params (tensor): Tensor to fill
Fill the provided tensor using the Orthonormal method.
Fill the provided tensor using the Orthonormal method .
def fill(self, param):
        """
        Fill the provided tensor using the Orthonormal method.

        Args:
            params (tensor): Tensor to fill
        """
        a = np.random.normal(0.0, 1.0, param.shape)
        u, _, v = np.linalg.svd(a, full_matrices=False)
        # pick the one with the correct shape
        q = u if u.shape == param.shape else v
        param[:] = self.scale * q
def fill ( self , param ) : a = np . random . normal ( 0.0 , 1.0 , param . shape ) u , _ , v = np . linalg . svd ( a , full_matrices = False ) # pick the one with the correct shape q = u if u . shape == param . shape else v param [ : ] = self . scale * q