What is the purpose of the 'vals' returned from tensor.find()?
              
              #192
            
            
              
  
  Closed
              
          
                  
                    
                      DeepBlockDeepak
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment 1 reply
-
| I don't know if I fully understand the question  >>> import pyttb as ttb
>>> X = ttb.tenzeros((4,4))
>>> X[0] = 99
>>> X[-1] = 55
>>> X.find()
(array([[0, 0],
        [3, 3]], dtype=int64),
 array([[99.],
        [55.]])) | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
In the
tensorclass we see this behavior:When
find()is used directly onX, like inX.find(), the second element of the returned tuple does display the original tensor values. But in the context above, boolean values are produced instead. Is there utility in these boolean values over the actual values?Beta Was this translation helpful? Give feedback.
All reactions