TypeError: __init__() got multiple values for argument 'strides'
时间: 2023-12-06 13:05:22 浏览: 170
TypeError: _queue_reduction(): incompatible function arguments.
This error occurs when you pass multiple values for the same argument in the initialization of an object or function.
For example, if you have a class that takes in a 'strides' argument in its __init__() method and you pass multiple values for 'strides' like this:
```
class MyClass:
def __init__(self, strides):
self.strides = strides
my_object = MyClass(strides=2, strides=3)
```
You will get the TypeError: __init__() got multiple values for argument 'strides'
To fix this error, make sure you are passing only one value for each argument. In the example above, you can fix the error by passing only one value for 'strides':
```
my_object = MyClass(strides=2)
```
阅读全文