0
$\begingroup$

I'm working on implementing an interface between a TensorFlow basic LSTM that's already been trained and a javascript version that can be run in the browser. The problem is that in all of the literature that I've read LSTMs are modeled as mini-networks (using only connections, nodes and gates) and TensorFlow seems to have a lot more going on.

The two questions that I have are:

Can the TensorFlow model be easily translated into a more conventional neural network structure?

Is there a practical way to map the trainable variables that TensorFlow gives you to this structure?

I can get the 'trainable variables' out of TensorFlow, the issue is that they appear to only have one value for bias per LSTM node, where most of the models I've seen would include several biases for the memory cell, the inputs and the output.

$\endgroup$

1 Answer 1

0
$\begingroup$

For efficiency purposes the tensorflow implementation uses a single bias vector that stores the biases for the memory, input and output gates concatenated together in a single vector.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.