docstr: Load embeddings from numpy array.
  
  Parameters
  ----------
  emb_array : numpy.array  or torch.tensor
      Embedding array in numpy array or torch.tensor
docstr_tok: ["Load","embeddings","from","numpy","array",".","Parameters","--","--","--","--","--","emb_array",":","numpy.array","or","torch.tensor","Embedding","array","in","numpy","array","or","torch.tensor"]
code: def load_emb(self, emb_array):
      """Load embeddings from numpy array.
  
      Parameters
      ----------
      emb_array : numpy.array  or torch.tensor
          Embedding array in numpy array or torch.tensor
      """
      if isinstance(emb_array, np.ndarray):
          self.emb = th.Tensor(emb_array)
      else:
          self.emb = emb_array
  
imports: import os
  import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  import torch.nn.init
  import torch.multiprocessing
  from torch.multiprocessing import Queue
  from _thread import start_new_thread
  import traceback
  from functools import wraps
  from ..None import *
label_desc: Use image node_id 3 for calling the InferEmbedding obj's underlying member method code with example usage: obj.load_emb(emb_array) without return types