CPU inference leads to 'RuntimeError: Input type (c10::BFloat16) and bias type (c10::Half) should be the same' - please review proposed fix
I have no NVIDIA card, so I'm using just my CPU for inference when running demo/app_januspro.py. However, this fails after a while with the following error message:
RuntimeError: Input type (c10::BFloat16) and bias type (c10::Half) should be the same
I got it working and opened PR #65. However, it should be reviewed by someone with more PyTorch experience than me to ensure that the fix is valid and doesn't break GPU inference.
I had same problem on mac and here's my solution for reference: https://github.com/takahirosir/Janus/commit/ff1e732981695b08c35f7356e04c89bb925906bf#diff-1b6c4cb1987bfffe1eba923c8b618df435472bfa1544712d10e491cd3b852c93
@takahirosir thanks for your hard work on the mac port.
@takahirosir thanks, looks like you found the root cause for the issue 👍
issue observed on a non-mac cpu, as well