Skip to content

Instantly share code, notes, and snippets.

@kevinrobinson
Last active December 8, 2015 22:15
Show Gist options
  • Select an option

  • Save kevinrobinson/492bcdc12280daced9e3 to your computer and use it in GitHub Desktop.

Select an option

Save kevinrobinson/492bcdc12280daced9e3 to your computer and use it in GitHub Desktop.
skipgram op
REGISTER_OP(“Skipgram”)
 .Output(“vocab_word: string”)
 .Output(“vocab_freq: int32”)
 .Output(“words_per_epoch: int64”)
 .Output(“current_epoch: int32”)
 .Output(“total_words_processed: int64”)
 .Output(“examples: int32”)
 .Output(“labels: int32”)
 .Attr(“filename: string”)
 .Attr(“batch_size: int”)
 .Attr(“window_size: int = 5”)
 .Attr(“min_count: int = 5”)
 .Attr(“subsample: float = 1e-3”)
 .Doc(R”doc(
Parses a text file and creates a batch of examples.
... more documentation here ...
)doc”);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment