

'''simple docstring'''
import numpy as np


def 	_lowerCAmelCase (						_UpperCamelCase						:					np.ndarray    )				->      np.ndarray:
     """simple docstring"""




     return 1 / (1 + np.exp(-vector    ))


def 	_lowerCAmelCase (						_UpperCamelCase						:					np.ndarray    )				->      np.ndarray:
     """simple docstring"""




     return vector * sigmoid(_UpperCamelCase    )


if __name__ == "__main__":
     import doctest

     doctest.testmod()



'''simple docstring'''
import warnings


warnings.warn(
    "memory_utils has been reorganized to utils.memory. Import `find_executable_batchsize` from the main `__init__`: "
    "`from accelerate import find_executable_batch_size` to avoid this warning.",
    FutureWarning,
)
