Skip to content

Commit e62a0d8

Browse files
authored
cleanup theano code (#86)
1 parent 6a9ac9c commit e62a0d8

File tree

15 files changed

+2
-391
lines changed

15 files changed

+2
-391
lines changed

Modules.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ MODULES += MODULE_MM_DT
6565
# ****** Neural Network ******
6666
MODULES += MODULE_NN
6767
MODULES += MODULE_NN_SEQUENCE_TRAINING
68-
MODULES += MODULE_THEANO_INTERFACE
6968
MODULES += MODULE_PYTHON
7069

7170
# ****** OpenFst ******

apptainer/2022-10-21_tensorflow-1.15_arm_v1/makefiles/Modules.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ MODULES += MODULE_MM_DT
6565
# ****** Neural Network ******
6666
MODULES += MODULE_NN
6767
MODULES += MODULE_NN_SEQUENCE_TRAINING
68-
MODULES += MODULE_THEANO_INTERFACE
6968
MODULES += MODULE_PYTHON
7069

7170
# ****** OpenFst ******

apptainer/2022-10-21_tensorflow-1.15_v1/makefiles/Modules.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ MODULES += MODULE_MM_DT
6565
# ****** Neural Network ******
6666
MODULES += MODULE_NN
6767
MODULES += MODULE_NN_SEQUENCE_TRAINING
68-
MODULES += MODULE_THEANO_INTERFACE
6968
MODULES += MODULE_PYTHON
7069

7170
# ****** OpenFst ******

apptainer/2023-05-08_tensorflow-2.8_v1/makefiles/Modules.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ MODULES += MODULE_MM_DT
6565
# ****** Neural Network ******
6666
MODULES += MODULE_NN
6767
MODULES += MODULE_NN_SEQUENCE_TRAINING
68-
MODULES += MODULE_THEANO_INTERFACE
6968
MODULES += MODULE_PYTHON
7069

7170
# ****** OpenFst ******

apptainer/2023-08-09_tensorflow-2.8_onnx-1.15_v1/makefiles/Modules.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ MODULES += MODULE_MM_DT
6666
# ****** Neural Network ******
6767
MODULES += MODULE_NN
6868
MODULES += MODULE_NN_SEQUENCE_TRAINING
69-
MODULES += MODULE_THEANO_INTERFACE
7069
MODULES += MODULE_PYTHON
7170

7271
# ****** OpenFst ******

apptainer/2023-11-08_tensorflow-2.14_v1/makefiles/Modules.make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ MODULES += MODULE_MM_DT
6565
# ****** Neural Network ******
6666
MODULES += MODULE_NN
6767
MODULES += MODULE_NN_SEQUENCE_TRAINING
68-
MODULES += MODULE_THEANO_INTERFACE
6968
MODULES += MODULE_PYTHON
7069

7170
# ****** OpenFst ******

src/Bliss/CorpusDescription.cc

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
#include <Modules.hh>
2727
#include <iomanip>
2828

29-
#ifdef MODULE_THEANO_INTERFACE
30-
#include "TheanoSegmentOrderingVisitor.hh"
31-
#endif
3229
#ifdef MODULE_PYTHON
3330
#include "PythonSegmentOrdering.hh"
3431
#endif
@@ -215,10 +212,6 @@ const Core::ParameterBool CorpusDescription::paramSegmentOrderSortByTimeLength(
215212
const Core::ParameterInt CorpusDescription::paramSegmentOrderSortByTimeLengthChunkSize(
216213
"segment-order-sort-by-time-length-chunk-size",
217214
"Only sort each such chunk of segments. (-1 = disabled)", -1);
218-
const Core::ParameterBool CorpusDescription::paramTheanoSegmentOrder(
219-
"theano-segment-order",
220-
"use theano to specify the order of segments over shared memory",
221-
false);
222215
const Core::ParameterBool CorpusDescription::paramPythonSegmentOrder(
223216
"python-segment-order",
224217
"use Python to specify the order of segments",
@@ -520,19 +513,10 @@ CorpusDescription::CorpusDescription(const Core::Configuration& c)
520513

521514
// Handle the ordering.
522515
{
523-
if (paramTheanoSegmentOrder(config)) {
524-
#ifdef MODULE_THEANO_INTERFACE
525-
verify(!ordering_);
526-
ordering_ = new TheanoSegmentOrderingVisitor();
527-
log("Using Theano segment ordering");
528-
#else
529-
criticalError("theano-segment-order not possible, MODULE_THEANO_INTERFACE disabled.");
530-
#endif
531-
}
532516
if (paramPythonSegmentOrder(config)) {
533517
#ifdef MODULE_PYTHON
534518
if (ordering_)
535-
criticalError("python-segment-order not possible, another ordering (theano?) already used");
519+
criticalError("python-segment-order not possible, another ordering already used");
536520
std::string pyModPath = paramPythonSegmentOrderModPath(config);
537521
std::string pyModName = paramPythonSegmentOrderModName(config);
538522
std::string pyConfig = paramPythonSegmentOrderConfig(config);

src/Bliss/CorpusDescription.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,6 @@ public:
590590
static const Core::ParameterBool paramSegmentOrderSortByTimeLength;
591591
static const Core::ParameterInt paramSegmentOrderSortByTimeLengthChunkSize;
592592
static const Core::ParameterBool paramProgressReportingSegmentOrth;
593-
static const Core::ParameterBool paramTheanoSegmentOrder;
594593
static const Core::ParameterBool paramPythonSegmentOrder;
595594
static const Core::ParameterString paramPythonSegmentOrderModPath;
596595
static const Core::ParameterString paramPythonSegmentOrderModName;

src/Bliss/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ CHECK_O = $(OBJDIR)/check.o \
3434
../Math/libSprintMath.$(a) \
3535
../Core/libSprintCore.$(a)
3636

37-
ifdef MODULE_THEANO_INTERFACE
38-
LIBBLISS_O += $(OBJDIR)/TheanoCommunicator.o
39-
LIBBLISS_O += $(OBJDIR)/TheanoSegmentOrderingVisitor.o
40-
endif
4137
ifdef MODULE_PYTHON
4238
LIBBLISS_O += $(OBJDIR)/PythonSegmentOrdering.o
4339
CHECK_O += ../Python/libSprintPython.$(a)

src/Bliss/TheanoCommunicator.cc

Lines changed: 0 additions & 201 deletions
This file was deleted.

0 commit comments

Comments
 (0)