title: Does PyTorch support variable with dynamic dimension?
body: <p>I've updated my question based upon the variable dimension of variables.</p>
  
  <p>Suppose the input tensor stores the 3d points with dimension 10x3, 10 means the #points and 3 is the feature dimension (say x,y,z coordinates). The dimension of the variable depends on the input tensor, say its dimension is 10x10. When the input tensor changes its dimension to 50x3, then the dimension of the variable will also have to change to 50x50. </p>
  
  <p>I know in Tensorflow, if the input dimension is changing/unknown, we can declare it as tf.placeholder(None,3). However, I never meet the situation where the size of variable is changing/unknown, it seems that the variable will always have the fixed dimension.</p>
  
  <p>I am currently learning PyTorch and don't know whether PyTorch supports this function. Any information would be appreciated!</p>
  
  <p>========= Original question ========</p>
  
  <p>I have a variable in which the size is changeable when input dimension changes. For example, if input is 10x2, then the variable should be 10x10. If input is 25x2, then the variable should be 25x25. As my understanding, the variable is used to store weights, which normally has fixed dimension. However in my case, the dimension of the variable depends on input data, which can change. Does PyTorch currently supports this kind of function?</p>
  
  <p>Thanks!</p>