Skip to content

Commit 1dae23c

Browse files
committed
set THEANO_FLAGS to avoid build error
1 parent 9028963 commit 1dae23c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

workflows/p2b1_mlrMBO/swift/workflow3.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ string exp_id = argv("exp_id");
2121

2222
string code_template =
2323
"""
24+
import os
25+
outdir = '%s'
26+
os.environ['THEANO_FLAGS']="base_compiledir={}".format(outdir)
27+
2428
import p2b1_runner
25-
import json, os
29+
import json
2630
import theano
2731
28-
outdir = '%s'
29-
theano.config.base_compiledir = outdir
30-
3132
if not os.path.exists(outdir):
3233
os.makedirs(outdir)
3334

0 commit comments

Comments
 (0)