How to create torch.tensor with shape (1,1,32) with default value?
I want to create torch.tensor variable with shape (1,1,32) with default value (None).
How can I do it ?

I don't believe you can assign None to a torch.Tensor. What is more appropriate however is to instead assign NaN. You can do so using the builtin torch.full:
&gt;&gt;&gt; torch.full((1, 1, 32), torch.nan)
tensor([[[nan, nan, nan, nan, nan, nan, nan, nan, 
          nan, nan, nan, nan, nan, nan, nan, nan, 
          nan, nan, nan, nan, nan, nan, nan, nan, 
          nan, nan, nan, nan, nan, nan, nan, nan]]])

