Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't save a convSPN #88

Open
IagoParis opened this issue Nov 12, 2019 · 2 comments
Open

Can't save a convSPN #88

IagoParis opened this issue Nov 12, 2019 · 2 comments
Labels

Comments

@IagoParis
Copy link
Collaborator

IagoParis commented Nov 12, 2019

Hello developers of LibSPN
I'm trying to save the convSPN created in your tutorial 7 with the code:
spn.JSONSaver('convSPN.spn', pretty=True).save(root)
after training. It is returning the error:

        [50, 27, 26, ..., 20, 21, 61]],
       [[38, 23, 29, ...,  8, 14, 16],
        [23, 20, 10, ..., 33, 10, 50]]]) is not JSON serializable

from the file _encode_json(obj)
Is there something I can do to save it?

@jostosh jostosh added the bug label Nov 12, 2019
@jostosh
Copy link
Collaborator

jostosh commented Nov 12, 2019

Hi there, I have a suspicion it's trying to JSON serialize the one hot kernels in one of the conv products layers. Will have to make a fix for this. I'll try and get to it tomorrow.

@IagoParis
Copy link
Collaborator Author

Wow, thank you very much for your quick response. If you need extra info, just ask.

@jostosh jostosh closed this as completed Jan 31, 2020
@jostosh jostosh reopened this Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants