Closed loreloc closed 1 year ago
I think most likely issue is with the data
type when get error like this, usually julia's kernel compiler for cuda does not give nice errors where there is type issues.
Also note that MAP is not exact on HCLTs since they are not deterministic circuits.
Please try change into the following and see what happens, it should work, let me know if it does not.
data = Array{Union{Missing, UInt8}}(train_gpu[1:10, :]);
Thank you! It seems it works now.
I was trying to perform approximate MAP using the same code in the example RAT_mnist.jl
.
Makes sense, try to aim for having same types as original data the circuit was trained on, some of the types automatically get picked up for the input nodes. In that ones seems we used UInt32 for the data when training the circuit.
Hi, I am trying performing MAP inference on HCLTs using ProbabilisticCircuits.jl v0.4.0, with CUDA 11.7 on a RTX A6000. However, there are some issues compilation-wise. It throws the following exception when calling
map_downward!
:I have also attached the .ptx file and here is the source code.
ptx file here