Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
gather in gpu mode
  • Loading branch information
jonghyuk0605 committed Sep 19, 2015
1 parent bc4d6b0 commit b55e7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rcn_train.m
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@

for problem_iter = 1:numel(opts.problems)
subplot(2,numel(opts.problems),problem_iter+numel(opts.problems)) ;
info.test.error{problem_iter}.base(end+1) = eval_base(problem_iter);
info.test.error{problem_iter}.ours(end+1) = eval_ours(problem_iter);
info.test.error{problem_iter}.base(end+1) = gather(eval_base(problem_iter));
info.test.error{problem_iter}.ours(end+1) = gather(eval_ours(problem_iter));
plot(1:epoch, info.test.error{problem_iter}.base, 'k') ; hold on ;
plot(1:epoch, info.test.error{problem_iter}.ours, 'b') ;
h=legend('Baseline', 'Ours') ;
Expand Down

0 comments on commit b55e7fb

Please sign in to comment.