def encode_dynamic(self, observation_batch: th.Tensor):
    assert (observation_batch.size() == (observation_batch.size()[0], self._observation_channels_num, self._observation_height, self._observation_width)), f'Observation size should be (Any, {self._observation_channels_num}, {self._observation_height}, {self._observation_width}), instead it is  {observation_batch.size()}'
    return self._dynEncoder(observation_batch)
def encode_dynamic(self, observation_batch: th.Tensor):
    assert (observation_batch.size() == (observation_batch.size()[0], self._observation_channels_num, self._observation_height, self._observation_width)), f'Observation size should be (Any, {self._observation_channels_num}, {self._observation_height}, {self._observation_width}), instead it is  {observation_batch.size()}'
    return self._dynEncoder(observation_batch)