(self, init_weight=1.0)
InitSimFeaturizer cannot be learnable.

        :param init_weight: (float or list of floats) a fixed weight for all attributes
                            or a list of floats that represent the weights of attributes
                            in the same order in the dataset.
InitSimFeaturizer cannot be learnable.
InitSimFeaturizer cannot be learnable .
def __init__(self, init_weight=1.0):
        """
        InitSimFeaturizer cannot be learnable.

        :param init_weight: (float or list of floats) a fixed weight for all attributes
                            or a list of floats that represent the weights of attributes
                            in the same order in the dataset.
        """
        if isinstance(init_weight, list):
            # If init_weight is a list, we convert to a tensor to be correctly
            # initialized in the TiedLinear model initialization, where init_weight
            # is multiplied by a tensor of ones for initialization.
            init_weight = torch.FloatTensor(init_weight)

        Featurizer.__init__(self, learnable=False, init_weight=init_weight)
def __init__ ( self , init_weight = 1.0 ) : if isinstance ( init_weight , list ) : # If init_weight is a list, we convert to a tensor to be correctly # initialized in the TiedLinear model initialization, where init_weight # is multiplied by a tensor of ones for initialization. init_weight = torch . FloatTensor ( init_weight ) Featurizer . __init__ ( self , learnable = False , init_weight = init_weight )