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

NameError: name 'leaf_type' is not defined #1

Open
alisiahkoohi opened this issue Apr 2, 2020 · 1 comment
Open

NameError: name 'leaf_type' is not defined #1

alisiahkoohi opened this issue Apr 2, 2020 · 1 comment

Comments

@alisiahkoohi
Copy link

In line 119 of hint.py, leaf_type is passed as an optional argument to initialize the HierarchicalAffineCouplingTree class, as follows:

        self.tree = HierarchicalAffineCouplingTree(dims_in[0],
                                                   conv=conv,
                                                   subnet_constructor=subnet_constructor,
                                                   c_internal=c_internal,
                                                   clamp=clamp,
                                                   max_splits=max_splits,
                                                   min_split_size=min_split_size,
                                                   leaf_type=leaf_type)

HierarchicalAffineCouplingTree does not seem to be able to accept such an argument. Additionally, leaf_type that is being passed is not defined.

@psteinb
Copy link

psteinb commented May 4, 2020

I second this observation, commenting out leaf_type=leaf_type appears to make this error go away. Maybe this hints to experimental code, that was never committed nor pushed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants