Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
bpucla committed Jun 12, 2021
1 parent 9e3f501 commit 27c2f5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion syntheic_8gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def main():
args = parser.parse_args()
set_seed(args.seed)
set_gpu(args.gpu)
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

model = IBEBM(args)
model.to(device)
Expand Down
4 changes: 2 additions & 2 deletions syntheic_pinwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def main():
parser.add_argument('--batch_size', type=int, default=500)
parser.add_argument('--log_freq', type=int, default=100)
parser.add_argument('--viz_freq', type=int, default=1000)
parser.add_argument('--gpu', type=int, default=1)
parser.add_argument('--gpu', type=int, default=0)
parser.add_argument('--x_dim', type=int, default=2)
parser.add_argument('--dec_hidden', type=int, default=200)
parser.add_argument('--enc_hidden', type=int, default=200)
Expand All @@ -398,7 +398,7 @@ def main():
args = parser.parse_args()
set_seed(args.seed)
set_gpu(args.gpu)
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

model = IBEBM(args)
model.to(device)
Expand Down
2 changes: 1 addition & 1 deletion synthetic_8gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def main():
args = parser.parse_args()
set_seed(args.seed)
set_gpu(args.gpu)
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

model = IBEBM(args)
model.to(device)
Expand Down

0 comments on commit 27c2f5b

Please sign in to comment.