Diffusers documentation
활성화 함수
시작하기
추론
확산 파이프라인 사용
어댑터 및 개인화
최적화 및 확장
모듈형 Diffusers
학습 및 파인튜닝
리소스
기여하기
API
주요 클래스
모듈형
로더
모델
Pipelines
스케줄러
내부 클래스
활성화 함수
🤗 Diffusers에서 다양한 모델을 지원하기 위한 사용자 정의 활성화 함수.
GELU
클래스 diffusers.models.activations.GELU
< source >( dim_in: intdim_out: intapproximate: str = 'none'bias: bool = True )
approximate="tanh"로 tanh 근사 지원을 하는 GELU 활성화 함수.
GEGLU
class diffusers.models.activations.GEGLU
< source >( dim_in: intdim_out: intbias: bool = True )
게이트드 리니어 유닛 활성화 함수의 변형입니다.
ApproximateGELU
class diffusers.models.activations.ApproximateGELU
< source >( dim_in: intdim_out: intbias: bool = True )
가우시안 에러 리니어 유닛(GELU)의 근사 형태. 자세한 내용은 이 논문의 2절을 참고하세요.
SwiGLU
class diffusers.models.activations.SwiGLU
< source >( dim_in: intdim_out: intbias: bool = True )
게이트드 리니어 유닛 활성화 함수의 변형입니다. GEGLU와 유사하지만 GeLU 대신 SiLU / Swish를 사용합니다.
FP32SiLU
입력이 torch.float32로 업캐스트된 SiLU 활성화 함수.
LinearActivation
class diffusers.models.activations.LinearActivation
< source >( dim_in: intdim_out: intbias: bool = Trueactivation: str = 'silu' )