33
44#include " tensorflow/core/public/version.h"
55
6+ using namespace v8 ;
67
8+ /*
79#include <fstream>
810
911// #include "tensorflow/core/lib/core/stringpiece.h"
1012
1113
1214#include "tensorflow/cc/ops/const_op.h"
13- #include " tensorflow/cc /ops/image_ops.h"
14- #include " tensorflow/cc/ops/standard_ops.h"
15+ #include "tensorflow/core /ops/image_ops.h"
16+ // #include "tensorflow/cc/ops/standard_ops.h"
1517#include "tensorflow/core/framework/graph.pb.h"
1618#include "tensorflow/core/graph/default_device.h"
1719#include "tensorflow/core/graph/graph_def_builder.h"
@@ -219,7 +221,6 @@ Status CheckTopLabel(const std::vector<Tensor>& outputs, int expected,
219221 return Status::OK();
220222}
221223
222- using namespace v8 ;
223224
224225int runTests() {
225226 // We need to call this to set up global state for TensorFlow.
@@ -290,10 +291,12 @@ int runTests() {
290291
291292
292293
294+
293295NAN_METHOD(RunTest) {
294296 printf("\nRunning Test\n");
295297 runTests();
296298}
299+ */
297300
298301NAN_METHOD (Version) {
299302 printf (" %s\n " , TF_VERSION_STRING );
@@ -309,9 +312,10 @@ NAN_MODULE_INIT(Init) {
309312
310313 Nan::Set (target, Nan::New (" version" ).ToLocalChecked (),
311314 Nan::GetFunction (Nan::New<FunctionTemplate>(Version)).ToLocalChecked ());
312-
315+ /*
313316 Nan::Set(target, Nan::New("test").ToLocalChecked(),
314317 Nan::GetFunction(Nan::New<FunctionTemplate>(RunTest)).ToLocalChecked());
318+ */
315319}
316320
317321NODE_MODULE (myaddon, Init);
0 commit comments