HomeSort by relevance Sort by last modified time
    Searched refs:fan_in (Results 1 - 3 of 3) sorted by null

  /external/tensorflow/tensorflow/contrib/layers/python/layers/
initializers.py 62 def variance_scaling_initializer(factor=2.0, mode='FAN_IN', uniform=False,
71 if mode='FAN_IN': # Count only number of input connections.
72 n = fan_in
76 n = (fan_in + fan_out)/2.0
84 `factor=2.0 mode='FAN_IN' uniform=False`
87 `factor=1.0 mode='FAN_IN' uniform=True`
98 mode: String. 'FAN_IN', 'FAN_OUT', 'FAN_AVG'.
109 TypeError: if `mode` is not in ['FAN_IN', 'FAN_OUT', 'FAN_AVG'].
113 if mode not in ['FAN_IN', 'FAN_OUT', 'FAN_AVG']:
114 raise TypeError('Unknow mode %s [FAN_IN, FAN_OUT, FAN_AVG]', mode
    [all...]
  /external/tensorflow/tensorflow/python/keras/_impl/keras/
initializers_test.py 85 fan_in, _ = init_ops._compute_fans(tensor_shape)
86 scale = np.sqrt(3. / fan_in)
93 fan_in, fan_out = init_ops._compute_fans(tensor_shape)
94 scale = np.sqrt(6. / (fan_in + fan_out))
101 fan_in, _ = init_ops._compute_fans(tensor_shape)
102 scale = np.sqrt(6. / fan_in)
109 fan_in, _ = init_ops._compute_fans(tensor_shape)
110 scale = np.sqrt(1. / fan_in)
117 fan_in, fan_out = init_ops._compute_fans(tensor_shape)
118 scale = np.sqrt(2. / (fan_in + fan_out)
    [all...]
  /external/tensorflow/tensorflow/python/ops/
init_ops.py 411 - number of input units in the weight tensor, if mode = "fan_in"
420 mode: One of "fan_in", "fan_out", "fan_avg".
434 mode="fan_in",
440 if mode not in {"fan_in", "fan_out", "fan_avg"}:
458 fan_in, fan_out = _compute_fans(scale_shape)
459 if self.mode == "fan_in":
460 scale /= max(1., fan_in)
464 scale /= max(1., (fan_in + fan_out) / 2.)
598 where `limit` is `sqrt(6 / (fan_in + fan_out))`
599 where `fan_in` is the number of input units in the weight tenso
    [all...]

Completed in 217 milliseconds