class_docstr: Learned constant layer for StyleGAN.
  
  This layer implements the learned constant that is used in "A Style-Based
  Generator Architecture for Generative Adversarial Networks".
  https://arxiv.org/pdf/1812.04948.pdf
class_docstr_tok: ["Learned","constant","layer","for","StyleGAN",".","This","layer","implements","the","learned","constant","that","is","used","in","``","A","Style-Based","Generator","Architecture","for","Generative","Adversarial","Networks","''",".","https",":","\/\/arxiv.org\/pdf\/1812.04948.pdf"]
docstr: Adds the variable for the learned constant to the layer.
docstr_tok: ["Adds","the","variable","for","the","learned","constant","to","the","layer","."]
code: def build(self, input_shape: tf.TensorShape):
      """Adds the variable for the learned constant to the layer."""
      self._learned_constant = self.add_weight(
          name="learned_constant",
          shape=self._shape,
          initializer=tf.keras.initializers.get("ones"),
      )
      super().build(input_shape)
  
imports: import math
  from typing import Any, Callable, Dict, Optional, Sequence, Tuple, Union, List
  import numpy
  import tensorflow
label_desc: Use image node_id 2 for calling the LearnedConstant obj's underlying member method code with example usage: obj.build(input_shape) without return types