unisim.backend.drake.tensor¶
Persistent packed tensor transfers for the Drake CPU host bridge.
Functions
|
Validate the intentionally narrow initial Drake tensor profile. |
|
Resolve and validate a Drake tensor target without importing Torch eagerly. |
|
Return the initial, fail-closed Drake tensor capability matrix. |
Classes
One stable Drake layout for explicit accelerator/CPU boundaries. |
- class unisim.backend.drake.tensor.DrakeHostBridgeTransferPlan[source]¶
Bases:
HostBridgeTransferPlanOne stable Drake layout for explicit accelerator/CPU boundaries.
DrakeUni physics remains authoritative on CPU. Each semantic operation moves at most one contiguous packet, and CUDA transfers are synchronized on the caller’s current Torch stream. The initial profile excludes fixed variants, interval forces, reset randomization, and host pre-step callbacks.
- Parameters:
backend (
DrakeBackend)spec (
TensorIOSpec)
- __init__(backend, spec)[source]¶
- Parameters:
backend (
DrakeBackend)spec (
TensorIOSpec)
- property spec: TensorIOSpec¶
Return the immutable layout request used to compile this plan.
- property transfer_stats: dict[str, int]¶
Return cumulative semantic transfer and synchronization counters.
- apply_reset(env_indices, qpos, qvel, randomization=None)[source]¶
Pack selected reset rows once, D2H them, and commit CPU physics.
- unisim.backend.drake.tensor.tensor_capabilities(backend)[source]¶
Return the initial, fail-closed Drake tensor capability matrix.
- Parameters:
backend (
DrakeBackend)- Return type:
TensorLifecycleCapabilities
- unisim.backend.drake.tensor.require_drake_tensor_runtime(backend, *, require_callback_free=False)[source]¶
Validate the intentionally narrow initial Drake tensor profile.
- Parameters:
backend (
DrakeBackend)require_callback_free (
bool)
- Return type: