Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 590462655
  • Loading branch information
texasmichelle authored and SeqIO committed Dec 13, 2023
1 parent 8012bf6 commit 079b5ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seqio/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""Experimental utilities for SeqIO."""

import functools
import inspect
from typing import Callable, Iterable, Mapping, Optional, Sequence
Expand Down Expand Up @@ -86,6 +87,7 @@ def _no_op_mixture_registry_get(*args, **kwargs):


def disable_registry():
"""Disables the seqio TaskRegistry and MixtureRegistry."""
_enfore_empty_registries()
dataset_providers.TaskRegistry.add = _no_op_task_registry_add
dataset_providers.TaskRegistry.add_provider = _no_op_task_registry_add
Expand Down
3 changes: 3 additions & 0 deletions seqio/experimental_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"""Tests for seqio.preprocessors."""

import contextlib
from unittest import mock

from absl.testing import absltest
from seqio import dataset_providers
from seqio import experimental
Expand Down Expand Up @@ -984,5 +986,6 @@ def test_mixture_registry_get_error(self):
MixtureRegistry.get('dummy_mixture')



if __name__ == '__main__':
absltest.main()

0 comments on commit 079b5ba

Please sign in to comment.