Skip to content

Commit aa71e4c

Browse files
committed
python
1 parent 034b932 commit aa71e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node_embed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def run(graph_fpath, embedding_size=DIM, num_sampled=NUM_SAMPLES, num_steps=NUM_
7373

7474
# Construct the computational graph
7575
graph = tf.Graph()
76-
with graph.as_default(), tf.device(DEVICE):
76+
with tf.device(DEVICE):
7777
train_dataset = tf.placeholder(tf.int32, shape=[edges_size])
7878
train_labels = tf.placeholder(tf.int32, shape=[edges_size, 1])
7979
valid_dataset = tf.constant(valid_examples, dtype=tf.int32)

0 commit comments

Comments
 (0)