• Initializer capable of adapting its scale to the shape of weights. With distribution=NORMAL, samples are drawn from a truncated normal distribution centered on zero, with stddev = sqrt(scale / n) where n is:

    • number of input units in the weight tensor, if mode = FAN_IN.
    • number of output units, if mode = FAN_OUT.
    • average of the numbers of input and output units, if mode = FAN_AVG. With distribution=UNIFORM, samples are drawn from a uniform distribution within [-limit, limit], with limit = sqrt(3 * scale / n).

    Parameters

    • config: VarianceScalingArgs

    Returns Initializer

    Doc

Generated using TypeDoc