MXFusion icon indicating copy to clipboard operation
MXFusion copied to clipboard

Execution throws if a Kernel Variable is set to CONSTANT

Open pabfer opened this issue 5 years ago • 1 comments

Describe the bug

If a kernel Variable is of CONSTANT type, fetch_parameters throws here since CONSTANT Variables do not make it to params input argument.

Expected behavior

Execution does not throw, and kernel Variables that are of type CONSTANT are kept constant and not optimized in training.

Desktop:

  • OS: Ubuntu 18.04.2
  • Python version: 3.6
  • MXNet version: 1.4.1
  • MXFusion version: 0.3.1
  • MXNet context: CPU

pabfer avatar Jul 06 '19 22:07 pabfer

Thanks for filing this!

Not sure exactly where the fix is here, but after a little digging I would guess that the kernel constants parameters just aren't making it into the variables with the rest of the constants during Inference initialization. Shouldn't be a hard thing to fix once we find it.

meissnereric avatar Jul 10 '19 10:07 meissnereric