'Fills the provided tensor.
Args:
param (tensor): target tensor to fill'

def fill(self, param):

    if isinstance(self.val, Tensor):
        assert (self.val.shape == param.shape), 'Constant(Array)    initializer    can    only    fill    a    matching    shape    tensor'
    param[:] = self.val
