Skip to content

Commit da3ee1c

Browse files
committed
Update: docstrings
1 parent 3057be8 commit da3ee1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kaleidoscope/operators/randomizeop.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def _hash(name: str) -> int:
3838

3939

4040
def _decode(x: da.Array, a: dict[str:Any]) -> da.Array:
41+
"""Returns decoded data."""
4142
f = Decode(np.single if x.dtype == np.single else np.double, x.ndim)
4243
y = f.apply_to(
4344
x,
@@ -51,6 +52,7 @@ def _decode(x: da.Array, a: dict[str:Any]) -> da.Array:
5152

5253

5354
def _encode(x: da.Array, a: dict[str:Any], dtype: np.dtype) -> da.Array:
55+
"""Returns encoded data."""
5456
f = Encode(dtype, x.ndim)
5557
y = f.apply_to(
5658
x,

0 commit comments

Comments
 (0)