class_docstr: Initializer that generates tensors initialized to 1.
class_docstr_tok: ["Initializer","that","generates","tensors","initialized","to","1","."]
code: def __call__(
      self, shape: types.ShapeLike, dtype: tf.DType
  ) -> tf.Tensor:
      dtype = _as_numerical_dtype(dtype)
      return tf.ones(shape, dtype)
  
imports: import abc
  import collections
  from typing import Iterable, Mapping, Optional, Union
  import numpy
  from sonnet.src import types
  import tensorflow
label_desc: Use image node_id 1 for calling the Ones obj's underlying member method code with example usage: obj.__call__(shape, dtype) and returns: tf