Hi @solsol
torch.where was added in v0.4.0 https://github.com/pytorch/pytorch/releases/tag/v0.4.0 21

  
    
    
    How can I do the operation the same as `np.where`? 
  
  
    @truenicoco, torch.where() looks like it’'s in 0.4! http://pytorch.org/docs/master/torch.html#torch.where 
thanks others for examples of other options for 0.3 and before