Почему я получаю ошибку (прерванную сигналом 6: SIGABRT) с последовательной моделью в keras на gpu и что я могу с этим сделать? - PullRequest
0 голосов
/ 03 февраля 2019

Я хочу посмотреть, смогу ли я внести изменения в свой код, чтобы я мог обучить последовательную модель keras.Когда я запускаю свой скрипт Python, он завершается с ошибкой в ​​следующей строке:

data = model.fit(LSTM_training_inputs[:-pred_range], LSTM_training_outputs, epochs=num_epochs, batch_size=1,verbose=2, shuffle=True)

Модель создается с использованием следующего кода:

def build_model(inputs, output_size, neurons, activ_func="linear",dropout=0.25, loss="mae", optimizer="adam"):
    model = Sequential()

    model.add(LSTM(neurons, input_shape=(inputs.shape[1], inputs.shape[2])))
    model.add(Dropout(dropout))
    model.add(Dense(units=output_size))
    model.add(Activation(activ_func))

    model.compile(loss=loss, optimizer=optimizer)
    return model

Моя консоль Python выдает следующий вывод (хвост вывода в любом случае):

Epoch 1/100

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

Стоит отметить, что я использую бэкэнд theano для keras, и мой файл .theanorc содержит следующее.

[blas]
ldflags =

[global] 
floatX = float32
device = opencl0:1

# By default the compiled files were being written to my local network drive.
# Since I have limited space on this drive (on a school's network),
# we can change the path to compile the files on the local machine.
# You will have to create the directories and modify according to where you 
# want to install the files. 
# Uncomment if you want to change the default path to your own.
# base_compiledir = /local-scratch/jer/theano/

[nvcc]
fastmath = True

[gcc]
cxxflags = -ID:\MinGW\include

[cuda]
# Set to where the cuda drivers are installed.
# You might have to change this depending where your cuda driver/what version is installed.

Есть лиспособ сделать так, чтобы программа не вылетала с ошибкой SIGABRT при подгонке модели?

...