title: Creating constant value in Keras
body: <p>I am trying to create a constant variable inside a keras model. What I was doing till now is to pass it as Input. But it is always a constant so I want it as a constant.(The input is <code>[1,2,3...50]</code> for each example => so I use <code>np.tile(np.array(range(50)),(len(X_input)))</code> to reproduce it for each example)</p>
  
  <p>So for now I had:</p>
  
  <pre><code>constant_input = Input(shape=(50,), dtype='int32', name="constant_input")
  </code></pre>
  
  <p>Which gives a tensor: <code>Tensor("constant_input", shape(?,50), dtype=int32)</code></p>
  
  <p>Now trying to do it as a constant:</p>
  
  <pre><code>np_constant = np.array(list(range(50))).reshape(1, 50)
  tf_constant = K.constant(np_constant)
  tensor_constant = Input(tensor=tf_constant, shape=(50,), dtype='int32', name="constant_input")
  </code></pre>
  
  <p>which gives a tensor: <code>Tensor("constant_input", shape(50,1),dtype=float32)</code></p>
  
  <p>But What I want is the constant to be scaled in each batch, meaning that the shape of the tensor should be <code>(?, 50)</code>, the same as the way of using <code>Input</code>.</p>
  
  <p>Is it possible to do that?</p>