TypeError: __init__() got an unexpected keyword argument 'size'
时间: 2023-10-04 16:03:45 浏览: 110
TypeError: _queue_reduction(): incompatible function arguments.
This error occurs when you try to pass an invalid keyword argument to a function or method. In this case, it seems like you are trying to pass a keyword argument 'size' to the __init__() method, but this method does not accept this argument.
To fix this error, you need to check the documentation for the __init__() method and make sure that you are passing the correct arguments. If the method does not accept the 'size' argument, you should remove it from your code. Alternatively, you can modify the method to accept this argument if it is necessary for your program.
阅读全文