当试图运行任何keras代码时,R会话中止

时间:2018-03-05 00:10:24

标签: r tensorflow keras

我刚刚在R:

中运行,下载并安装了Keras的CPU版本
> install.packages("keras")
> library(keras)
> install_keras(method = "virtualenv")

当我只是运行

时,它运行并成功安装,没有任何问题
> keras::backend() 

或任何其他keras代码行,我每次都会收到此错误:

/Users/michael/.virtualenvs/r-tensorflow/lib/python2.7/site-packages/h5py/__init__.py:36: 
FutureWarning: Conversion of the second argument of issubdtype from `float`
   to `np.floating` is deprecated. In future, it will be treated as 
  `np.float64 == np.dtype(float).type`.
   from ._conv import register_converters as _register_converters
Using TensorFlow backend.

*** caught illegal operation ***
address 0x10e9a7dd9, cause 'illegal opcode'

Traceback:
 1: .Call(`_reticulate_py_module_import`, module, convert)
 2: py_module_import(module, convert = convert)
 3: import(module)
 4: doTryCatch(return(expr), name, parentenv, handler)
 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 6: tryCatchList(expr, classes, parentenv, handlers)
 7: tryCatch(import(module), error = clear_error_handler())
 8: py_resolve_module_proxy(x)
 9: `$.python.builtin.module`(keras, backend)
10: keras$backend
11: backend()

我正在运行R版本3.4.3和Python版本2.7.10

这是我的CPU信息,因为我知道此错误可能与处理器有关:

Apple: AUDynamicsProcessor:
Apple: AUVoiceProcessor:
  Processor Name: Intel Core 2 Duo
  Processor Speed: 3.06 GHz
  Number of Processors: 1 

任何形式的帮助将不胜感激。我已经尝试重新安装keras和R但无济于事(

0 个答案:

没有答案