def _GetWeight(self, theta):
    p = self.params
    filter_w = theta.w
    filter_w = tf.nn.softmax((filter_w / p.temperature), axis=0)
    if ((p.dropconnect_prob > 0.0) and (not p.is_eval)):
        if p.deterministic_dropout:
            filter_w = py_utils.DeterministicDropout(filter_w, (1.0 - p.dropconnect_prob), py_utils.GenerateStepSeedPair(p, theta.global_step))
        else:
            filter_w = tf.nn.dropout(filter_w, (1.0 - p.dropconnect_prob), seed=p.random_seed)
    filter_w = tf.tile(filter_w, [1, 1, p.weight_tiling_factor, 1])
    return filter_w
def _GetWeight(self, theta):
    p = self.params
    filter_w = theta.w
    filter_w = tf.nn.softmax((filter_w / p.temperature), axis=0)
    if ((p.dropconnect_prob > 0.0) and (not p.is_eval)):
        if p.deterministic_dropout:
            filter_w = py_utils.DeterministicDropout(filter_w, (1.0 - p.dropconnect_prob), py_utils.GenerateStepSeedPair(p, theta.global_step))
        else:
            filter_w = tf.nn.dropout(filter_w, (1.0 - p.dropconnect_prob), seed=p.random_seed)
    filter_w = tf.tile(filter_w, [1, 1, p.weight_tiling_factor, 1])
    return filter_w