
"""Module defining the abstract initializer."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import abc

import six


@six.add_metaclass(abc.ABCMeta)
class Initializer(object):
  """The abstract base class for an initializer."""

  @abc.abstractmethod
  def initialize_episode(self, physics, random_state):
    raise NotImplementedError


"""Module defining the abstract initializer."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import abc

import six


@six.add_metaclass(abc.ABCMeta)
class Initializer(object):
  """The abstract base class for an initializer."""

  @abc.abstractmethod
  def __call__(self, physics, random_state):
    raise NotImplementedError

Rename `initialize_episode` --> `__call__` in `composer.Initializer`
Rename `initialize_episode` --> `__call__` in `composer.Initializer`

PiperOrigin-RevId: 234775654

  
  """Module defining the abstract initializer."""
  
  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  
  import abc
  
  import six
  
  
  @six.add_metaclass(abc.ABCMeta)
  class Initializer(object):
    """The abstract base class for an initializer."""
  
    @abc.abstractmethod
-   def initialize_episode(self, physics, random_state):
+   def __call__(self, physics, random_state):
      raise NotImplementedError
  
Rename `initialize_episode` --> `__call__` in `composer.Initializer`
## Code Before:

"""Module defining the abstract initializer."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import abc

import six


@six.add_metaclass(abc.ABCMeta)
class Initializer(object):
  """The abstract base class for an initializer."""

  @abc.abstractmethod
  def initialize_episode(self, physics, random_state):
    raise NotImplementedError

## Instruction:
Rename `initialize_episode` --> `__call__` in `composer.Initializer`
## Code After:

"""Module defining the abstract initializer."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import abc

import six


@six.add_metaclass(abc.ABCMeta)
class Initializer(object):
  """The abstract base class for an initializer."""

  @abc.abstractmethod
  def __call__(self, physics, random_state):
    raise NotImplementedError
