



"""simple docstring"""


from torch import nn







def 			lowercase						(   _SCREAMING_SNAKE_CASE :    str					):






				'''simple docstring'''



				if act_fn in ["swish", "silu"]:
								return nn.SiLU()
				elif act_fn == "mish":
								return nn.Mish()
				elif act_fn == "gelu":
								return nn.GELU()
				else:
								raise ValueError(f'Unsupported activation function: {act_fn}'					)







def    a__    (		snake_case__					:							int						,   snake_case__					:							int     ):
  return 1 if input_a == input_a else 0




def    a__    (		):
  assert xnor_gate(0						,   0     ) == 1
  assert xnor_gate(0						,   1     ) == 0
  assert xnor_gate(1						,   0     ) == 0
  assert xnor_gate(1						,   1     ) == 1


if __name__ == "__main__":
 print(xnor_gate(0, 0))
 print(xnor_gate(0, 1))
 print(xnor_gate(1, 0))
 print(xnor_gate(1, 1))





