Closed
Description
Description
Trying to setup a LSTM in VB.NET, .NET6, VS2022. Granted I am a newbie, but I've tried various ways and I just keep getting this error on the lines indicated here:
inputLayer and lstmLayerFw are set, are not nothing. inputLayer has the shape info it as set in the line above.
SequenceLength = 60
InputFeatures = 17
Protected Overrides Sub BuildModel()
Dim num_hidden = 64
Dim layers = keras.layers
Dim inputLayer = layers.Input(New Integer() {SequenceLength, InputFeatures}, dtype:=TF_DataType.TF_FLOAT)
' Define forward LSTM layer
Dim lstmLayerFw = New LSTM(New LSTMArgs With {.Units = num_hidden})
Dim lstmOutputFw = lstmLayerFw.Apply(inputLayer) <----
' Define backward LSTM layer
Dim inputLayerReversed = ReverseTensor(inputLayer)
Dim lstmLayerBw = New LSTM(New LSTMArgs With {.Units = num_hidden})
Dim lstmOutputBw = lstmLayerBw.Apply(inputLayerReversed) <----
Reproduction Steps
See description.
Known Workarounds
None known.
Configuration and Other Information
Windows 11
VS2022
.NET6
TF.NET 0.100.4
TensorFlow.Keras 0.10.4
SciSharp.TensorFlow.Redist 2.11.2