Is it considered secure at all to use passwords and private keys in the code of smart contract?

Basically something like: function transfer(address to, string privkey) { if(privkey == “cd33434343…”) { msg.sender.transfer(this.balance); } } The above is obviously flawed since the privkey is in string when the if conditions checks it so someone can read the .sol sourcecode (if on etherscan…). But what if it’s just argument of a function? I mean since…

Details

Restoring Tensorflow Model without saving

In Tensorflow, I have noticed that if we want to save model we use the tf.Saver function or it’s other counterparts. And when we have to load the model, we use it’s restore counterpart==> # Importing and restoring Meta-graph # Saving the model…. saver = tf.train.import_meta_graph(‘my-save-dir/my-model-10000.meta’) # And Restoring the model… saver.restore(sess, ‘my-save-dir/my-model-10000’ Of every…

Details