Skip to content

Commit

Permalink
Update (base update)
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Feb 5, 2025
2 parents 8267e94 + bae04ce commit 3ca1767
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/linux-post-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

yum update gcc
yum update libstdc++
3 changes: 2 additions & 1 deletion .github/workflows/build-wheels-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
include:
- repository: pytorch/tensordict
smoke-test-script: test/smoke_test.py
env-script: .github/scripts/install-deps-smoke-test.sh
post-script: .github/scripts/linux-post-script.sh
package-name: tensordict
name: pytorch/tensordict
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
Expand All @@ -47,3 +47,4 @@ jobs:
smoke-test-script: ${{ matrix.smoke-test-script }}
trigger-event: ${{ github.event_name }}
env-var-script: .github/scripts/version_script.sh
post-script: ${{ matrix.post-script }}
2 changes: 1 addition & 1 deletion tensordict/nn/distributions/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(
dist_params = params.get(name)
kwargs = extra_kwargs.get(name, {})
if dist_params is None:
raise KeyError
raise KeyError(f"no param {name} found in params with keys {params.keys(True, True)}")
dist = dist_class(**dist_params, **kwargs)
dists[write_name] = dist
self.dists = dists
Expand Down

0 comments on commit 3ca1767

Please sign in to comment.