title: Keras Layer Build Error: build() takes 1 Positional Argument but two were given
body: <p>I have the following error in this simple layer:</p>
  
  <pre><code>class MyLayer(Layer):
  
  def __init__(self):
      super(MyLayer, self).__init__()
  
  def build(self):
      # Create a trainable weight variable for this layer.
      self.kernel = self.add_weight(name='kernel', 
                                    shape=(1)
                                    trainable=True)
      super(MyLayer, self).build() 
  
  def call(self, x):
      return x/self.kernel
  </code></pre>
  
  <p>When I use it as:</p>
  
  <pre><code>m = MyLayer()
  t = m (input)
  </code></pre>
  
  <blockquote>
    <p>Error: build() takes one positional argument but two were given.</p>
  </blockquote>