Sorry but even I am not aware of a way to do it directly using the operators for more than 1-d Tensor.
Not sure if this answer is helpful or not, but do check.

  
      stackoverflow.com
  
  
      
    
  

  How to repeat a numpy array along a new dimension with padding? 9



  python, numpy



  asked by
  
  
    Raven
  
  on 01:31PM - 14 Aug 19 UTC