refactoring and extending LSTM tf algo

8 jobs for tensorflow in 29 minutes and 37 seconds (queued for 15 minutes and 45 seconds)
Status Job ID Name Coverage
  Build
passed #92982
conda-linux
build_linux_27

00:04:40

passed #92983
conda-linux
build_linux_35

00:04:25

passed #92984
conda-macosx
build_macosx_27

00:03:38

passed #92985
conda-macosx
build_macosx_35

00:04:03

 
  Test
passed #92986
conda-linux
test_linux_27

00:06:03

passed #92987
conda-linux
test_linux_35

00:04:44

passed #92988
conda-macosx
test_macosx_27

00:03:30

passed #92989
conda-macosx
test_macosx_35

00:03:36