Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Azure
- Compute
- 컨텍스트 매니져
- 아기동화
- GPT
- 인자 힌트
- UDF
- 파이썬
- Cognitive Search
- FOR
- AI 동화
- 토끼
- 조건문
- 도커
- Redshift
- 검색
- 인컨텍스트 러닝
- 프롬프트 튜닝
- Cognitive Service
- 제로샷
- 모험
- 동화책
- 대스크
- Docker
- 퓨샷
- 파라미터 힌트
- 반복문
- Python
- Ai
- dask
Archives
- Today
- Total
목록delayed (1)
호랭이 분석가
1. Delayed Delayed 함수를 비교하기 위하여 파이썬 함수와 비교하면서 보겠습니다. # 기본 함수 from time import sleep def inc(x) : sleep(5) return x + 1 def add(x, y) : sleep(5) return x + y %%time x = inc(1) y = inc(2) z = add(x, y) 파이썬에서는 x > y > z 순으로 순차적으로 실행하기 때문에 15초가 걸립니다. import dask.delayed as delayed @delayed def inc(x) : sleep(5) return x + 1 @delayed def add(x, y) : sleep(5) return x + y Dask의 delayed 함수를 사용하기 위하여 데코..
Python/Dask
2022. 4. 10. 17:22