Skip to content

Commit 74c851a

Browse files
generatedunixname2129521104496973meta-codesync[bot]
authored andcommitted
Fix fbcode//pearl:test_pearl - test_construction_of_all_types (pearl.test.unit.with_pytorch.test_agent.TestAgentWithPyTorch) (T283234158)
Differential Revision: D114591826 fbshipit-source-id: d1aa76d4e827f229608f58e53d6cc06e7b4037ea
1 parent 1653c9c commit 74c851a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/unit/with_pytorch/test_agent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,10 @@ def get_trained_qr_dqn_agent_and_environment(
11961196
"""
11971197

11981198
def test_construction_of_all_types(self) -> None:
1199+
# Concurrent stress-run copies each default to one compute thread per
1200+
# core, oversubscribing the host and timing out; the models are tiny.
1201+
torch.set_num_threads(1)
1202+
11991203
# The offline agents (IQL and CQL) fetch their training datasets from an
12001204
# external URL, unreachable under network isolation (e.g. network_access=none).
12011205
# Detect isolation via the local-forkserver env var or the RE marker file,

0 commit comments

Comments
 (0)