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

'function' object has no attribute 'func_name' #26

Open
rohith2334 opened this issue Jul 9, 2019 · 3 comments
Open

'function' object has no attribute 'func_name' #26

rohith2334 opened this issue Jul 9, 2019 · 3 comments

Comments

@rohith2334
Copy link

when i run python conv_net_train.py -static -word2vec 2
this happens
traceback (most recent call last): File "conv_net_train.py", line 479, in <module> activations=[Sigmoid]) File "conv_net_train.py", line 130, in train_conv_net classifier = MLPDropout(rng, input=layer1_input, layer_sizes=hidden_units, activations=activations, dropout_rates=dropout_rate) File "conv_net_classes.py", line 110, in __init__ dropout_rate=dropout_rates[layer_counter]) File "conv_net_classes.py", line 85, in __init__ activation=activation, use_bias=use_bias) File "conv_net_classes.py", line 43, in __init__ if activation.func_name == "ReLU": AttributeError: 'function' object has no attribute 'func_name'

@ichenjia
Copy link

ichenjia commented Nov 6, 2019

In python3, func_name is renamed __name__

@Souravcool1996
Copy link

In python3, func_name is renamed __name__

I have trained my model now which file should i run. is conv_test.py file or anything else and what is the command to run test file.

@MarwanMo7amed
Copy link

@Souravcool1996 can you help me I have some questions in preprocessing part if you are willing to help please contact me marwan_mo7amed@hotmail.com

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

4 participants