contains_lazy_spec¶ class torchrl.data.contains_lazy_spec(spec: TensorSpec)[source]¶ 如果 spec 包含惰性堆疊的 spec,則返回 true。 引數: spec (TensorSpec) – 要檢查的 spec