Skip to content

Instantly share code, notes, and snippets.

@cwu159
Created January 25, 2019 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwu159/06c12676ca3fa9028c5f0857e49f8a85 to your computer and use it in GitHub Desktop.
Save cwu159/06c12676ca3fa9028c5f0857e49f8a85 to your computer and use it in GitHub Desktop.
2021cwu: -1 is an invalid move for board ???????????........??........??........??...o@...??...@o...??........??........??........??????????? More info: Using Theano backend. 2019-01-25 23:10:14,713:WARNING:[JAILED]:Using NumPy C-API based implementation for BLAS functions. Traceback (most recent call last): File "/home/othello/django/othello/apps/games/run_ai_utils.py", line 37, in strat_wrapper self.strat(board, player, best_shared, running) File "/home/othello/django/students/2021cwu/strategy.py", line 54, in best_strategy model = load_model('./strategy_move_model_v1_2.h5') File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/engine/saving.py", line 419, in load_model model = _deserialize_model(f, custom_objects, compile) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/engine/saving.py", line 225, in _deserialize_model model = model_from_config(model_config, custom_objects=custom_objects) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/engine/saving.py", line 458, in model_from_config return deserialize(config, custom_objects=custom_objects) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/layers/__init__.py", line 55, in deserialize printable_module_name='layer') File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/utils/generic_utils.py", line 145, in deserialize_keras_object list(custom_objects.items()))) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/engine/sequential.py", line 301, in from_config model.add(layer) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/engine/sequential.py", line 165, in add layer(x) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/engine/base_layer.py", line 431, in __call__ self.build(unpack_singleton(input_shapes)) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/layers/convolutional.py", line 141, in build constraint=self.kernel_constraint) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/engine/base_layer.py", line 249, in add_weight weight = K.variable(initializer(shape), File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/initializers.py", line 218, in __call__ dtype=dtype, seed=self.seed) File "/home/othello/django/venv/local/lib/python3.6/site-packages/keras/backend/theano_backend.py", line 2600, in random_uniform return rng.uniform(shape, low=minval, high=maxval, dtype=dtype) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/sandbox/rng_mrg.py", line 872, in uniform rstates = self.get_substream_rstates(nstreams, dtype) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/configparser.py", line 117, in res return f(*args, **kwargs) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/sandbox/rng_mrg.py", line 779, in get_substream_rstates multMatVect(rval[0], A1p72, M1, A2p72, M2) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/sandbox/rng_mrg.py", line 62, in multMatVect [A_sym, s_sym, m_sym, A2_sym, s2_sym, m2_sym], o, profile=False) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/compile/function.py", line 317, in function output_keys=output_keys) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/compile/pfunc.py", line 486, in pfunc output_keys=output_keys) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/compile/function_module.py", line 1841, in orig_function fn = m.create(defaults) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/compile/function_module.py", line 1715, in create input_storage=input_storage_lists, storage_map=storage_map) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/link.py", line 699, in make_thunk storage_map=storage_map)[:3] File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/vm.py", line 1091, in make_all impl=impl)) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/op.py", line 955, in make_thunk no_recycling) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/op.py", line 858, in make_c_thunk output_storage=node_output_storage) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/cc.py", line 1217, in make_thunk keep_lock=keep_lock) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/cc.py", line 1157, in __compile__ keep_lock=keep_lock) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/cc.py", line 1624, in cthunk_factory key=key, lnk=self, keep_lock=keep_lock) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/cmodule.py", line 1189, in module_from_key module = lnk.compile_cmodule(location) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/cc.py", line 1527, in compile_cmodule preargs=preargs) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/cmodule.py", line 2405, in compile_str return dlimport(lib_filename) File "/home/othello/django/venv/local/lib/python3.6/site-packages/theano/gof/cmodule.py", line 317, in dlimport rval = __import__(module_name, {}, {}, [module_name]) ImportError: /home/othello/.theano/compiledir_Linux-4.15--generic-x86_64-with-Ubuntu-18.04-bionic-x86_64-3.6.7-64/tmp7hrlfz3g/m75022cac696dc858984a7c4467166cc6915405b19d04c2580f5acf71c834d9de.so: failed to map segment from shared object [Disconnected from server]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment