'''simple docstring'''




from torch import nn





class 					__magic_name__		(					nn.Module):







			def __init__(			self       :						List[Any]       ,    lowercase_       :						Tuple       ,    lowercase_       :						Optional[int]					):
										super().__init__()
										lowercase_      :    Optional[Any]       		= class_size
										lowercase_      :    str       		= embed_size
										# self.mlp1 = nn.Linear(embed_size, embed_size)
										# self.mlp2 = (nn.Linear(embed_size, class_size))
										lowercase_      :    Union[str, Any]       		= nn.Linear(lowercase_       ,    lowercase_					)







			def 			SCREAMING_SNAKE_CASE_  (			self       :						Any       ,    lowercase_       :						List[str]					):
										# hidden_state = nn.functional.relu(self.mlp1(hidden_state))
										# hidden_state = self.mlp2(hidden_state)
										lowercase_      :    Dict       		= self.mlp(lowercase_					)
										return logits






'''simple docstring'''




import pytest

import datasets.config
from datasets.utils.info_utils import is_small_dataset




@pytest.mark.parametrize("""dataset_size"""   ,   [None, 400 * 2**20, 600 * 2**20]				)
@pytest.mark.parametrize("""input_in_memory_max_size"""   ,   ["""default""", 0, 100 * 2**20, 900 * 2**20]				)
def 							lowerCamelCase			(   UpperCAmelCase__ :      Union[str, Any]   ,   UpperCAmelCase__ :      List[Any]   ,   UpperCAmelCase__ :      str				)    ->   Any:
							if input_in_memory_max_size != "default":
														monkeypatch.setattr(datasets.config   ,   """IN_MEMORY_MAX_SIZE"""   ,   UpperCAmelCase__				)
							lowercase_      :    List[Any]       		= datasets.config.IN_MEMORY_MAX_SIZE
							if input_in_memory_max_size == "default":
														assert in_memory_max_size == 0
							else:
														assert in_memory_max_size == input_in_memory_max_size
							if dataset_size and in_memory_max_size:
														lowercase_      :    str       		= dataset_size < in_memory_max_size
							else:
														lowercase_      :    List[Any]       		= False
							lowercase_      :    Any       		= is_small_dataset(UpperCAmelCase__				)
							assert result == expected





