Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Nov 20, 2024
2 parents 4d5dfe1 + cfa93f6 commit 3179bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ jobs:
REF_TYPE=${{ github.ref_type }}
REF_NAME=${{ github.ref_name }}
apt-get update
apt-get install rsync -y
if [[ "${REF_TYPE}" == branch ]]; then
if [[ "${REF_NAME}" == main ]]; then
Expand Down
5 changes: 3 additions & 2 deletions sota-implementations/cql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from tensordict import TensorDict, TensorDictParams
from tensordict.nn import TensorDictModule, TensorDictSequential
from tensordict.nn.distributions import NormalParamExtractor
from tensordict.tensorclass import NonTensorData

from torchrl.collectors import SyncDataCollector
from torchrl.data import (
Expand Down Expand Up @@ -224,8 +225,8 @@ def make_cql_model(cfg, train_env, eval_env, device="cpu"):
{
"low": torch.as_tensor(action_spec.space.low, device=device),
"high": torch.as_tensor(action_spec.space.high, device=device),
"tanh_loc": False,
"safe_tanh": not cfg.compile.compile,
"tanh_loc": NonTensorData(False),
"safe_tanh": NonTensorData(not cfg.compile.compile),
}
),
no_convert=True,
Expand Down

0 comments on commit 3179bc5

Please sign in to comment.