-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The 1st entry of padding
argument must be a tuple of 2 integers. Received: 3
#2
Comments
That's really odd. What happens if you edit def normalize_tuple(value, n, name):
"""
… docstring snipped…
"""
# v should print "int" and an int-ish value, unless there's something weird going on.
print(type(value))
print(value)
# ^
if isinstance(value, int):
return (value,) * n
else:
try:
value_tuple = … # rest of function unchanged My guess is that there's a numpy integer floating around somewhere in there, and the check in at the beginning of |
This is what it prints! |
The number of values in the tuple seems to be an issue, the type is long which seems to be acceptable. Any ideas why this might be happening? Thanks a bunch for the help. |
|
Thanks, that resolved the error. Getting this now, though:
|
Not sure why that's happening. Are you sure you're actually using the code from this repo? My line 197 of |
I keep getting the error above - anyone know why this might be happening?
The text was updated successfully, but these errors were encountered: