DSQ icon indicating copy to clipboard operation
DSQ copied to clipboard

RuntimeError: derivative for floor_divide is not implemented

Open AIbeginner2020 opened this issue 4 years ago • 3 comments

Very appreciate for your implementation. "RuntimeError: derivative for floor_divide is not implemented" I have encounter this problem when i try to transform the conv layer to DSQ conv , and I can't find this function implement anywhere in the code. Would you please tell me how to solve the above problem? Thank you very much.

AIbeginner2020 avatar Sep 16 '20 09:09 AIbeginner2020

Hi, I guess that you are using PyTorch >= 1.5.0. It seems to be the problem of PyTorch API. I did not meet this in version 1.4.0., and floor_divide seems to be added after 1.5.0.

ricky40403 avatar Sep 17 '20 15:09 ricky40403

Very appreciate for your implementation. "RuntimeError: derivative for floor_divide is not implemented" I have encounter this problem when i try to transform the conv layer to DSQ conv , and I can't find this function implement anywhere in the code. Would you please tell me how to solve the above problem? Thank you very much.

Very appreciate for your implementation. "RuntimeError: derivative for floor_divide is not implemented" I have encounter this problem when i try to transform the conv layer to DSQ conv , and I can't find this function implement anywhere in the code. Would you please tell me how to solve the above problem? Thank you very much.

Hi, I have the same problem, can u tell where the problem is and how to solve it, thanks! @ricky40403

flyingTan avatar Nov 07 '20 03:11 flyingTan

Hi, I guess that you are using PyTorch >= 1.5.0. It seems to be the problem of PyTorch API. I did not meet this in version 1.4.0., and floor_divide seems to be added after 1.5.0.

Can I treat floor_divide as divide when backwarding ?

Arctanxy avatar Feb 20 '21 09:02 Arctanxy