Skip to content

Commit 7fcc4fe

Browse files
committed
Type transforms
1 parent 171216e commit 7fcc4fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reward_preprocessing/vis/reward_vis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Port of lucid.scratch.rl_util to PyTorch. APL2.0 licensed."""
22
from functools import reduce
33
import logging
4-
from typing import Dict, List, Optional, Union
4+
from typing import Callable, Dict, List, Optional, Union
55

66
import lucent.optvis.param as param
77
import lucent.optvis.render as render
@@ -237,7 +237,7 @@ def vis_traditional(
237237
self,
238238
feature_list=None,
239239
*,
240-
transforms=[transform.jitter(2)],
240+
transforms: List[Callable[[th.Tensor], th.Tensor]] = [transform.jitter(2)],
241241
l2_coeff: float = 0.0,
242242
l2_layer_name: Optional[str] = None,
243243
):

0 commit comments

Comments
 (0)