MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / square

Function square

union/TUS/simHashLSH.py:3–4  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1from concurrent.futures import ProcessPoolExecutor
2
3def square(x):
4 return x * x
5
6# 创建进程池,并使用 map 方法对 square 应用于列表中的每个元素
7with ProcessPoolExecutor(max_workers=4) as executor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected