class_docstr: Provides a fixed position encoding for 2D and 3D coordinates.
  
  The embedding follows the initialisation method used in multiple papers such
  as "Attention is All You Need", https://arxiv.org/abs/1706.03762 and
  "Better plain ViT baselines for ImageNet-1k", https://arxiv.org/abs/2205.01580
  
  Attributes:
    temperature: Temperature parameter.
    dtype: dtype of the position encoding.
class_docstr_tok: ["Provides","a","fixed","position","encoding","for","2D","and","3D","coordinates",".","The","embedding","follows","the","initialisation","method","used","in","multiple","papers","such","as","``","Attention","is","All","You","Need","''",",","https",":","\/\/arxiv.org\/abs\/1706.03762","and","''","Better","plain","ViT","baselines","for","ImageNet-1k","''",",","https",":","\/\/arxiv.org\/abs\/2205.01580","Attributes",":","temperature",":","Temperature","parameter",".","dtype",":","dtype","of","the","position","encoding","."]
docstr: Adds the fixed embedding to the inputs.
  
  Args:
    inputs: Either an [N, W, H, C] or [N, T, W, H, C] input array.
  
  Returns:
    inputs with position encodings added to them.
docstr_tok: ["Adds","the","fixed","embedding","to","the","inputs",".","Args",":","inputs",":","Either","an","[","N",",","W",",","H",",","C","]","or","[","N",",","T",",","W",",","H",",","C","]","input","array",".","Returns",":","inputs","with","position","encodings","added","to","them","."]
code: def __call__(self, inputs: jnp.ndarray) -> jnp.ndarray:
      """Adds the fixed embedding to the inputs.
  
      Args:
        inputs: Either an [N, W, H, C] or [N, T, W, H, C] input array.
  
      Returns:
        inputs with position encodings added to them.
      """
      return inputs + get_fixed_sincos_position_embedding(
          inputs.shape, self.temperature, self.dtype
      )
  
imports: import functools
  from typing import Callable, Optional, Sequence, Tuple
  import flax.linen
  import jax
  import jax.numpy
  import numpy
  from scenic.model_lib.layers import nn_layers
label_desc: Use image node_id 1 for calling the AddFixedSinCosPositionEmbedding obj's underlying member method code with example usage: obj.__call__(inputs) and returns: unknown