@@ -1909,26 +1909,20 @@ def where(condition, x, y, _builder=None):
19091909def add (x , y , sanitize_overflow : constexpr = True , _builder = None ):
19101910 x = _unwrap_if_constexpr (x )
19111911 y = _unwrap_if_constexpr (y )
1912- x = semantic .to_tensor (x , _builder )
1913- y = semantic .to_tensor (y , _builder )
19141912 return semantic .add (x , y , sanitize_overflow , _builder )
19151913
19161914
19171915@builtin
19181916def sub (x , y , sanitize_overflow : constexpr = True , _builder = None ):
19191917 x = _unwrap_if_constexpr (x )
19201918 y = _unwrap_if_constexpr (y )
1921- x = semantic .to_tensor (x , _builder )
1922- y = semantic .to_tensor (y , _builder )
19231919 return semantic .sub (x , y , sanitize_overflow , _builder )
19241920
19251921
19261922@builtin
19271923def mul (x , y , sanitize_overflow : constexpr = True , _builder = None ):
19281924 x = _unwrap_if_constexpr (x )
19291925 y = _unwrap_if_constexpr (y )
1930- x = semantic .to_tensor (x , _builder )
1931- y = semantic .to_tensor (y , _builder )
19321926 return semantic .mul (x , y , sanitize_overflow , _builder )
19331927
19341928
0 commit comments