• Virgile Andreani's avatar
    Changes for numpy 2.0 deprecations · ca089790
    Virgile Andreani 提交于
    - Replace np.cast with np.asarray: in numpy 2.0,
      `np.cast[new_dtype](arr)` is deprecated.
      The literal replacement is `np.asarray(arr, dtype=new_dtype)`.
    
    - Replace np.sctype2char and np.obj2sctype.
      Added try/except to handle change in behavior
      of `np.dtype`
    
    - Replace np.find_common_type with np.result_type
    
    Further changes to `TensorType`:
    
    TensorType.dtype must be a string, so the code
    has been changed from `self.dtype = np.dtype(dtype).type`,
    where the right-hand side is of type `np.generic`, to
    `self.dtype = str(np.dtype(dtype))`, where the right-hand
    side is a string that satisfies:
    
    `self.dtype == str(np.dtype(self.dtype))`
    
    This doesn't change the behavior of `np.array(..., dtype=self.dtype)`
    etc.
    ca089790
名称
最后提交
最后更新
..
conv 正在载入提交数据...
random 正在载入提交数据...
rewriting 正在载入提交数据...
__init__.py 正在载入提交数据...
test_basic.py 正在载入提交数据...
test_blas.py 正在载入提交数据...
test_blas_c.py 正在载入提交数据...
test_blas_scipy.py 正在载入提交数据...
test_blockwise.py 正在载入提交数据...
test_casting.py 正在载入提交数据...
test_complex.py 正在载入提交数据...
test_einsum.py 正在载入提交数据...
test_elemwise.py 正在载入提交数据...
test_extra_ops.py 正在载入提交数据...
test_fft.py 正在载入提交数据...
test_fourier.py 正在载入提交数据...
test_functional.py 正在载入提交数据...
test_gc.py 正在载入提交数据...
test_inplace.py 正在载入提交数据...
test_interpolate.py 正在载入提交数据...
test_io.py 正在载入提交数据...
test_keepdims.py 正在载入提交数据...
test_math.py 正在载入提交数据...
test_math_scipy.py 正在载入提交数据...
test_merge.py 正在载入提交数据...
test_nlinalg.py 正在载入提交数据...
test_pad.py 正在载入提交数据...
test_shape.py 正在载入提交数据...
test_sharedvar.py 正在载入提交数据...
test_slinalg.py 正在载入提交数据...
test_sort.py 正在载入提交数据...
test_special.py 正在载入提交数据...
test_subtensor.py 正在载入提交数据...
test_type.py 正在载入提交数据...
test_type_other.py 正在载入提交数据...
test_utils.py 正在载入提交数据...
test_variable.py 正在载入提交数据...
test_xlogx.py 正在载入提交数据...
utils.py 正在载入提交数据...