






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__UpperCAmelCase							:   Optional[int]							=  {
    "configuration_upernet": ["UperNetConfig"],
}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	__UpperCAmelCase							:   str							=  [
	    "UperNetForSemanticSegmentation",
	    "UperNetPreTrainedModel",
	]


if TYPE_CHECKING:
	from .configuration_upernet import UperNetConfig

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_upernet import UperNetForSemanticSegmentation, UperNetPreTrainedModel


else:
	import sys

	__UpperCAmelCase							:   List[str]							=  _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


__UpperCAmelCase							:   Tuple							=  {}

try:
	if not is_sentencepiece_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	__UpperCAmelCase							:   List[Any]							=  ["BartphoTokenizer"]

if TYPE_CHECKING:
	try:
		if not is_sentencepiece_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .tokenization_bartpho import BartphoTokenizer

else:
	import sys

	__UpperCAmelCase							:   Tuple							=  _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)