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

TypeError: Unknown parameter type: <class 'theano.tensor.var.TensorVariable'> #35

Open
dvhphuc opened this issue Jun 21, 2022 · 0 comments

Comments

@dvhphuc
Copy link

dvhphuc commented Jun 21, 2022

I have a problem:
[21/06/2022 04:38:59] model options: {'n_episodes': 5, 'input_dim': 1024, 'hidden_dim': 256, 'W_init': 'normal', 'U_init': 'normal', 'weight_decay': 1e-05, 'regularizer': 'L2', 'optimizer': 'adam', 'base_lr': 1e-05, 'decay_rate': 0.1, 'max_epochs': 60, 'decay_stepsize': -1, 'ignore_distant_sim': False, 'distant_sim_thre': 20, 'alpha': 0.01, 'model_file': None, 'disp_freq': 1, 'train_dataset_path': 'datasets/eccv16_dataset_tvsum_google_pool5.h5'}
[21/06/2022 04:38:59] initializing net model
Traceback (most recent call last):
File "vsum_train.py", line 158, in
train_dataset_path=args.dataset)
File "vsum_train.py", line 56, in train
net = reinforceRNN(model_options)
File "/content/drive/MyDrive/Colab Notebooks/VideoSum/vsumm-reinforce/model_reinforceRNN.py", line 40, in init
init_state=None, init_memory=None, go_backwards=False
File "/content/drive/MyDrive/Colab Notebooks/VideoSum/vsumm-reinforce/theano_nets.py", line 342, in init
self.output = self.step(self.state_below)
File "/content/drive/MyDrive/Colab Notebooks/VideoSum/vsumm-reinforce/theano_nets.py", line 396, in step
go_backwards=self.go_backwards
File "/usr/local/lib/python3.7/dist-packages/theano/scan_module/scan.py", line 849, in scan
profile=False)
File "/usr/local/lib/python3.7/dist-packages/theano/compile/function/init.py", line 350, in function
output_keys=output_keys,
File "/usr/local/lib/python3.7/dist-packages/theano/compile/function/pfunc.py", line 427, in pfunc
_pfunc_param_to_in(p, allow_downcast=allow_input_downcast) for p in params
File "/usr/local/lib/python3.7/dist-packages/theano/compile/function/pfunc.py", line 427, in
_pfunc_param_to_in(p, allow_downcast=allow_input_downcast) for p in params
File "/usr/local/lib/python3.7/dist-packages/theano/compile/function/pfunc.py", line 543, in _pfunc_param_to_in
raise TypeError(f"Unknown parameter type: {type(param)}")
TypeError: Unknown parameter type: <class 'theano.tensor.var.TensorVariable'>

How can i fix it?
Thank you

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

1 participant