-
| I am trying to remove extra dimension from the mentioned tensor. But squeeze() is not working. For your kind information my current device ion "cpu". So can anyone tell me why it is not working? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            ryan-popa
          
      
      
        Jan 16, 2023 
      
    
    Replies: 2 comments 2 replies
-
| squeeze only removes 1 dimension shapes. You shape is 5,4 - there is no 1 size dim to be removed | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
      Answer selected by
        mrdbourke
-
| Thank you Rayn Popa. Now its clear. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

squeeze only removes 1 dimension shapes. You shape is 5,4 - there is no 1 size dim to be removed