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

RUN ERROR #1

Open
N-Kingsley opened this issue Jul 8, 2018 · 0 comments
Open

RUN ERROR #1

N-Kingsley opened this issue Jul 8, 2018 · 0 comments

Comments

@N-Kingsley
Copy link

When I run 'python ptb_word_lm.py --data_path=ptb_data/',error is as follows.How can I solve the problem?
('batch_size', 20)
('dim_F', 20)
('dim_Obs', 20)
('dim_P', 20)
('hidden_size', 20)
('init_scale', 0.0)
('keep_prob', 1.0)
('kernel_width_F', 0.2)
('kernel_width_Obs', 2)
('kernel_width_P', 0.2)
('learning_rate', 1)
('lr_decay', 1.0)
('max_epoch', 10)
('max_grad_norm', 0.25)
('nRFF_F', 2000)
('nRFF_Obs', 2000)
('nRFF_P', 2000)
('num_layers', 1)
('num_steps', 20)
('obs_window', 5)
('reg_rate', 0.001)
('seed', 0)
('vocab_size', 49)
featurizing
project into rff space
Traceback (most recent call last):
File "ptb_word_lm.py", line 352, in
tf.app.run()
File "/home/ni/.conda/envs/py3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "ptb_word_lm.py", line 288, in main
config.obs_window)
File "/home/ni/psrnn/two_stage_regression.py", line 119, in two_stage_regression
Obs_rff = Obs_Proj.project(Obs_rff)
File "/home/ni/psrnn/two_stage_regression.py", line 28, in project
return np.cos((x.T.dot(self.W) + self.b).T)*np.sqrt(2.)/np.sqrt(self.nRFF)
MemoryError

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