title: PyTorch: initializing weight with numpy array + create a constant tensor
body: <p>I have the following code :</p>
  
  <pre><code>self.wi = nn.Embedding(num_embeddings, embedding_dim)
  self.wj = nn.Embedding(num_embeddings1, embedding_dim)
  self.bi = nn.Embedding(num_embeddings, 1)
  self.bj = nn.Embedding(num_embeddings1, 1)
  
  self.wi.weight.data.uniform_(-1, 1)
  self.wj.weight.data.uniform_(-1, 1)
  self.bi.weight.data.zero_()
  self.bj.weight.data.zero_()
  </code></pre>
  
  <p>I want to initialize the weights with numpy array, and I want to create a constant tensor, which is also a numpy array.
  I am new to PyTorch, and I appreciate any help.  </p>