remove global data

This commit is contained in:
Mark Daoust 2018-12-11 13:52:38 -08:00 committed by GitHub
parent 437aeb55cc
commit 795f16f1fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,6 @@ data_index = 0
# Step 3: Function to generate a training batch for the skip-gram model.
def generate_batch(batch_size, num_skips, skip_window):
global data
global data_index
assert batch_size % num_skips == 0
assert num_skips <= 2 * skip_window