Skip to content

Commit

Permalink
Update train_dec.py
Browse files Browse the repository at this point in the history
  • Loading branch information
loeweX authored Nov 19, 2019
1 parent 6a461ed commit 415ef47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train_dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
# Generate fully-connected interaction graph (sparse graphs would also work)
off_diag = np.ones([args.num_atoms, args.num_atoms]) - np.eye(args.num_atoms)

rel_rec = np.array(encode_onehot(np.where(off_diag)[1]), dtype=np.float32)
rel_send = np.array(encode_onehot(np.where(off_diag)[0]), dtype=np.float32)
rel_rec = np.array(encode_onehot(np.where(off_diag)[0]), dtype=np.float32)
rel_send = np.array(encode_onehot(np.where(off_diag)[1]), dtype=np.float32)
rel_rec = torch.FloatTensor(rel_rec)
rel_send = torch.FloatTensor(rel_send)

Expand Down

0 comments on commit 415ef47

Please sign in to comment.