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 | 29 | 30 | 31 |
Tags
- Azure
- 제로샷
- Python
- GPT
- UDF
- AI 동화
- FOR
- 동화책
- 토끼
- 컨텍스트 매니져
- Cognitive Service
- 인컨텍스트 러닝
- 조건문
- 퓨샷
- 파라미터 힌트
- 프롬프트 튜닝
- 모험
- Compute
- dask
- Redshift
- Cognitive Search
- 대스크
- 반복문
- 도커
- Docker
- Ai
- 인자 힌트
- 아기동화
- 검색
- 파이썬
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