Avoid warning in np primitive type tests. (#7833)
This commit is contained in:
@@ -245,19 +245,23 @@ class TestInplacePredict:
|
||||
predt_orig = self.booster.inplace_predict(orig)
|
||||
# all primitive types in numpy
|
||||
for dtype in [
|
||||
np.signedinteger,
|
||||
np.int32,
|
||||
np.int64,
|
||||
np.byte,
|
||||
np.short,
|
||||
np.intc,
|
||||
np.int_,
|
||||
np.longlong,
|
||||
np.unsignedinteger,
|
||||
np.uint32,
|
||||
np.uint64,
|
||||
np.ubyte,
|
||||
np.ushort,
|
||||
np.uintc,
|
||||
np.uint,
|
||||
np.ulonglong,
|
||||
np.floating,
|
||||
np.float16,
|
||||
np.float32,
|
||||
np.float64,
|
||||
np.half,
|
||||
np.single,
|
||||
np.double,
|
||||
|
||||
Reference in New Issue
Block a user