I try to use t.clone(),but got the error as following:
AttributeError: ‘tuple’ object has no attribute 'clone’
I have print the tensor, it likes this:
(Variable containing:
( 0 ,.,.) =
3.6771e-02  9.1163e-03 -4.6124e-03  …   1.6192e-02 -6.2507e-02 -2.6645e-02
3.3874e-02  2.7712e-02 -1.0089e-03  …   1.8731e-02 -6.7204e-02 -1.4607e-02
2.6752e-02  4.6108e-03 -1.4462e-02  …   1.6751e-02 -6.2923e-02 -9.3205e-03
…                   ⋱                   …
8.6184e-03  2.3956e-02 -3.5039e-03  …   2.5552e-02 -8.0435e-02 -2.1839e-02
2.8574e-02  1.8138e-02  1.3028e-02  …   3.8464e-02 -7.3556e-02 -2.0020e-02
2.5375e-02  3.1769e-02 -9.0993e-03  …   2.5984e-02 -5.6886e-02 -2.8673e-02
( 1 ,.,.) =
-4.1037e-02 -1.1623e-02 -6.6585e-02  …  -7.7161e-02 -2.5075e-02  3.5004e-02
-4.5208e-02  8.2192e-03 -5.2468e-02  …  -5.2976e-02 -4.1708e-02  3.3064e-02
-3.8489e-02 -6.5531e-03 -5.6036e-02  …  -6.2628e-02 -6.6918e-02  2.4578e-02
…                   ⋱                   …
-3.6897e-02 -3.0198e-02 -7.0606e-02  …  -7.0507e-02 -4.9378e-02  2.4891e-02
-4.0861e-02 -1.9936e-02 -7.6990e-02  …  -7.7515e-02 -3.4677e-02  2.3064e-02
-2.2280e-02  2.1252e-03 -5.5134e-02  …  -1.0321e-01 -3.5902e-02  4.4363e-04
[torch.cuda.FloatTensor of size 2x32x256 (GPU 0)]
, Variable containing:
( 0 ,.,.) =
8.1449e-02  1.9492e-02 -9.0664e-03  …   3.2678e-02 -1.3380e-01 -5.0523e-02
7.4143e-02  5.8971e-02 -1.9690e-03  …   3.7655e-02 -1.4540e-01 -2.8084e-02
5.9795e-02  9.7720e-03 -2.7975e-02  …   3.4647e-02 -1.3675e-01 -1.7499e-02
…                   ⋱                   …
1.9183e-02  5.1225e-02 -6.8582e-03  …   5.1483e-02 -1.7551e-01 -4.1264e-02
6.2458e-02  3.8586e-02  2.5294e-02  …   7.6771e-02 -1.5727e-01 -3.8019e-02
5.6382e-02  6.6959e-02 -1.7662e-02  …   5.2514e-02 -1.2264e-01 -5.4399e-02
( 1 ,.,.) =
-8.5505e-02 -2.1032e-02 -1.2568e-01  …  -1.5592e-01 -4.5696e-02  6.4638e-02
-9.8223e-02  1.4949e-02 -1.0036e-01  …  -1.0515e-01 -7.6799e-02  6.1776e-02
-8.3184e-02 -1.1824e-02 -1.0363e-01  …  -1.2173e-01 -1.2290e-01  4.6648e-02
…                   ⋱                   …
-7.8155e-02 -5.4790e-02 -1.3294e-01  …  -1.4039e-01 -8.9279e-02  4.7344e-02
-8.7492e-02 -3.6960e-02 -1.4446e-01  …  -1.5424e-01 -6.5307e-02  4.4151e-02
-4.9116e-02  3.9087e-03 -1.0445e-01  …  -2.0894e-01 -6.4353e-02  8.1201e-04
[torch.cuda.FloatTensor of size 2x32x256 (GPU 0)]
)