"""
Author:      Haris Hasic, Phd Student @ Ishida Laboratory, Department of Computer Science, Tokyo Institute of Technology
Created on:  February 28th, 2020
Description: This file contains the TensorFlow 1.12. neural network initialization functions.
"""

import tensorflow as tf


def init_weights(w_shape, layer_index, weight_initializer):
    """ Initialization of the weight values. """

    return tf.Variable(weight_initializer(w_shape), name="weight{}".format(layer_index))


def init_bias(b_shape, layer_index, bias_initializer):
    """ Initialization of the bias values. """

    return tf.Variable(tf.constant(bias_initializer, shape=b_shape, name="bias{}".format(layer_index)))

4b3f25e8c4f9c9ecb6e54bf840a0af0b8f8f91ee
<mask token>

<mask token>


def init_weights(w_shape, layer_index, weight_initializer):
    """ Initialization of the weight values. """
    return tf.Variable(weight_initializer(w_shape), name='weight{}'.format(
        layer_index))


<mask token>

<mask token>


def init_weights(w_shape, layer_index, weight_initializer):
    """ Initialization of the weight values. """
    return tf.Variable(weight_initializer(w_shape), name='weight{}'.format(
        layer_index))


def init_bias(b_shape, layer_index, bias_initializer):
    """ Initialization of the bias values. """
    return tf.Variable(tf.constant(bias_initializer, shape=b_shape, name=
        'bias{}'.format(layer_index)))

<mask token>
import tensorflow as tf


def init_weights(w_shape, layer_index, weight_initializer):
    """ Initialization of the weight values. """
    return tf.Variable(weight_initializer(w_shape), name='weight{}'.format(
        layer_index))


def init_bias(b_shape, layer_index, bias_initializer):
    """ Initialization of the bias values. """
    return tf.Variable(tf.constant(bias_initializer, shape=b_shape, name=
        'bias{}'.format(layer_index)))

"""
Author:      Haris Hasic, Phd Student @ Ishida Laboratory, Department of Computer Science, Tokyo Institute of Technology
Created on:  February 28th, 2020
Description: This file contains the TensorFlow 1.12. neural network initialization functions.
"""

import tensorflow as tf


def init_weights(w_shape, layer_index, weight_initializer):
    """ Initialization of the weight values. """

    return tf.Variable(weight_initializer(w_shape), name="weight{}".format(layer_index))


def init_bias(b_shape, layer_index, bias_initializer):
    """ Initialization of the bias values. """

    return tf.Variable(tf.constant(bias_initializer, shape=b_shape, name="bias{}".format(layer_index)))
