






"""simple docstring"""
from __future__ import annotations

def 				snake_case      (   A__	,A__						):
			UpperCAmelCase_     : Tuple			     =					0
			UpperCAmelCase_     : List[str]			     =					len(A__						) - 1

			while i < j:
						if nums[i] + nums[j] == target:
									return [i, j]
						elif nums[i] + nums[j] < target:
									UpperCAmelCase_     : Tuple			     =					i + 1
						else:
									UpperCAmelCase_     : List[str]			     =					j - 1

			return []


if __name__ == "__main__":
			import doctest

			doctest.testmod()
			print(f'{two_pointer([2, 7, 11, 15], 9) = }')











"""simple docstring"""
from torch import nn

def 				snake_case      (   A__						):
			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}"""						)



