Skip to content

Instantly share code, notes, and snippets.

View abaybektursun's full-sized avatar
💫
Grind

Abay Bektursun abaybektursun

💫
Grind
View GitHub Profile
@abaybektursun
abaybektursun / blog_tensorflow_variable_sequence_classification.py
Last active September 6, 2019 09:26 — forked from danijar/blog_tensorflow_variable_sequence_classification.py
TensorFlow Variable-Length Sequence Classification (Updated)
# Updated to work with TF 1.4
# Working example for my blog post at:
# http://danijar.com/variable-sequence-lengths-in-tensorflow/
import functools
import sets
import tensorflow as tf
from tensorflow import nn
def lazy_property(function):