tf.math.floordiv
    
    
      
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
  
  
   
  
    
  
  
    
    
Divides x / y elementwise, rounding toward the most negative integer.
tf . math . floordiv ( 
    x ,  y ,  name = None 
) 
Mathematically, this is equivalent to floor(x / y). For example:
  floor(8.4 / 4.0) = floor(2.1) = 2.0
  floor(-8.4 / 4.0) = floor(-2.1) = -3.0
This is equivalent to the '//' operator in Python 3.0 and above.
Note:  x and y must have the same type, and the result will have the same
type as well. 
Args 
x 
Tensor numerator of real numeric type.
 
 
y 
Tensor denominator of real numeric type.
 
 
name 
A name for the operation (optional).
 
 
Returns 
x / y rounded toward -infinity.
 
 
Raises 
TypeError 
If the inputs are complex.
 
 
  
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license .
  Last updated 2024-04-26 UTC.
 
 
  
  
  
    
      [null,null,["Last updated 2024-04-26 UTC."],[],[]]