title: How to convert Variable to keras Layer
body: <p>The output is </p>
  
  <pre><code>tf.Variable 'Variable_1:0' shape=(10, 15, 9488) dtype=float32_ref
  </code></pre>
  
  <p>I want to convert it to keras layer. </p>
  
  <pre><code>input_output = Input(shape=(10,512))
  model = Model(input_output, output) 
  </code></pre>
  
  <p>Is there any way to do that?</p>
  
  <p>currently, the error is </p>
  
  <pre><code>Output tensors to a Model must be the output of a Keras Layer (thus holding past layer metadata).
  Found:
  tf.Variable 'Variable_1:0' shape=(10, 15, 9488) dtype=float32_ref
  </code></pre>
  
  <p>=============================================<br>
  I tried to use Lambda, but got the error below: <br>
  ValueError: Output tensors to a Model must be the output of a Keras <code>Layer</code><br> 
  (thus holding past layer metadata). <br>
  Found: keras.layers.core.Lambda object at 0x7fad52faf550<br></p>
  
  <p>Here is what I did:<br></p>
  
  <pre><code>def convert_tensor(self, outputs):
      return outputs
  
  input_result = Input(shape=(int(outputs.shape[0]), int(outputs.shape[1]),int(outputs.shape[2])))
  outputs = Lambda(self.convert_tensor(outputs), output_shape=(10, 15, 9488))
  model = Model(input_result, outputs)
  </code></pre>