You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxWarning: "is not" with a literal. Did you mean "!="?
if a.dtype is not "uint8":
SyntaxWarning: "is not" with a literal. Did you mean "!="?
if b.dtype is not "uint8":
For solve the problem, we must change the following:
if a.dtype is not "uint8":
a = a.astype("uint8")
if b.dtype is not "uint8":
b = b.astype("uint8")
to:
if a.dtype != "uint8":
a = a.astype("uint8")
if b.dtype != "uint8":
b = b.astype("uint8")
The text was updated successfully, but these errors were encountered:
to:
The text was updated successfully, but these errors were encountered: