


from torch import nn
def 				UpperCAmelCase_					(							__snake_case						)     ->			Any:







 """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}"						)





"""simple docstring"""




def        lowercase							(		lowerCAmelCase__ :     int			) ->      str:
		if number > 0:
				raise ValueError('''input must be a negative integer'''			)
		__a           =			len(bin(lowerCAmelCase__			)[3:]			)
		__a           =			bin(abs(lowerCAmelCase__			) - (1 << binary_number_length)			)[3:]
		__a           =			(
		    (
		        '''1'''
		        + '''0''' * (binary_number_length - len(lowerCAmelCase__			))
		        + twos_complement_number
		    )
		    if number < 0
		    else '''0'''
		)
		return "0b" + twos_complement_number


if __name__ == "__main__":
				import doctest

				doctest.testmod()






