def __make_var(self, name: str, shape: list):
        """
        Creates a tensorflow variable with the given name and shape.
        :param name: name to set for the variable.
        :param shape: list defining the shape of the variable.
        :return: created TF variable.
        """
        return tf.get_variable(name, shape, trainable=self.__network.is_trainable())
Creates a tensorflow variable with the given name and shape.
        :param name: name to set for the variable.
        :param shape: list defining the shape of the variable.
        :return: created TF variable.