text: # -*- coding:utf-8 -*-
  
  import tensorflow as tf
  import numpy as np
  from .variable_util import get_const_variable, get_rand_variable, get_dim
  
  def linear(name, inputs, out_dim, bias = 0.0):
      in_dim = get_dim(inputs)
      w = get_rand_variable(name, [in_dim, out_dim], 1/np.sqrt(in_dim))
      b = get_const_variable(name, [out_dim], bias)
      return tf.matmul(inputs, w) + b
  
  