mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 08:07:54 +08:00
8 lines
158 B
Python
8 lines
158 B
Python
from typing import List
|
|
import numpy as np
|
|
import halo
|
|
|
|
@halo.distributed([List[int]], [np.ndarray])
|
|
def normal(shape):
|
|
return np.random.normal(size=shape)
|