Repository navigation
cleanup: remove contract-less defensive fallback code - #2590
Merged
Merged
Conversation
3 tasks
- Replace getattr(..., 'device', cpu/default) with direct env.device access - Replace getattr probes for protocol-required attrs (cfg, state, play_capabilities, num_envs) - Narrow broad except clauses to specific exceptions - Remove redundant torch.as_tensor calls on already-tensor values - Update test fixtures to conform to EnvProtocol - Clean up SimBackend.backend_type fallback in unisim
TATP-233
force-pushed
the
cleanup/defensive-code-cleanup
branch
from
November 6, 2026 05:11
c12198c to
4c11d84
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
全仓扫描并清理无合同依据的过渡性防御代码。
主要改动
验证
剩余问题
以下模式已识别但需更大范围重构/设计决策,将单独提 issue 跟踪: