toddwong

Results 15 comments of toddwong

I think I figured it out. `tf.keras.Model.save` seems not compatible with `tf.saved_model.load` Use `tf.keras.models.load_model` with `tf.keras.Model.save`, and `tf.saved_model.save` with `tf.saved_model.load`

@FireController1847 Not for me I think. ``` git clone [email protected]:Unitech/pm2.git cd pm2 git checkout development npm link cd \test pm2 start test.js -i 2 ``` Still got 2 black console...

Unless i missed something, God.nodeApp(in lib/God/ClusterMode.js) called cluster.fork, which has no windowsHide parameter at all!? Dead end!

I got a hacky solution ```diff diff --git a/lib/God.js b/lib/God.js index bf3bedda..61178584 100644 --- a/lib/God.js +++ b/lib/God.js @@ -15,7 +15,7 @@ ******************************/ var semver = require('semver'); -var cluster = require('cluster');...

@soyuka Not sure, but I've filed a feature request nodejs/node#17370 But the black windows during `pm2 stop x` etc. should be address in pm2 I think.

Only node >= 9.4.0 supports windowsHide in cluster.settings. So this only works for node >= 9.4.0 with pm2 cluster mode. And you have to take care of you own child...

@inkhsutesou I mean if you call `child_process.fork/exec/...` in your own scripts, you'd have to set the `windowsHide` flag to true in the parameters. if you call `cluster.fork` in your own...

@msm1089 try this: ``` var exec = require('child_process').exec; exec('npm run serve', {windowsHide: true}); ```