tensorflow / fold

Deep learning with dynamic computation graphs in TensorFlow
Apache License 2.0
1.82k stars 266 forks source link

Calculating Softmax over a sequence of scalars #56

Open coopie opened 7 years ago

coopie commented 7 years ago

As the title suggests, I cannot find a way of doing this. There does not seem to be a way of currying a divide function with the sum of a sequence, and then mapping that back over the sequence.

Any help would be great - but I fear I will have to retreat to vanilla TF and use padded input sequences (the horror!).