快捷方式

SqueezeTransform

class torchrl.envs.transforms.SqueezeTransform(*args, **kwargs)[原始碼]

移除指定位置上大小為一的維度。

引數:

dim (int) – 要壓縮的維度。

文件

訪問 PyTorch 全面開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源