We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a85ef22 commit 385ddb8Copy full SHA for 385ddb8
src/Tensorflow/TensorFlow.php
@@ -63,12 +63,7 @@ public function __construct()
63
64
private function initializeFFI()
65
{
66
- $cwd = getcwd();
67
- chdir(realpath(__DIR__ . '/../..'));
68
-
69
- TensorFlow::$ffi = FFI::load(__DIR__ . "/../../c/tf_singlefile.2.3.0.h");
70
71
- chdir($cwd);
+ TensorFlow::$ffi = FFI::cdef(file_get_contents(__DIR__ . "/../../c/tf_singlefile.2.3.0.h"), __DIR__ . "/../../lib/libtensorflow.so.2.3.0");
72
}
73
74
public function version()
0 commit comments