hi, I dont know if this is good for this forum, but I ran into a problem when programming the network in my chess engine.
I use the cppflow c_api wrapper and I converted my model to a pb file with https://medium.com/@sebastingarcaacosta ... 740846d9eb and it works. when I try to initialize it says that there is no init operation and indeed when I get the operations it doesn't specify something close to "init". and when I do `tf.compat.v1.variables_initializer([])` it returns None.
does anyone know how to get an init operation in?
tensorflow c++ model from keras model doesnt have "init" operation
Moderators: hgm, Dann Corbit, Harvey Williamson
-
OfekShochat
- Posts: 50
- Joined: Thu Oct 15, 2020 10:19 am
- Full name: ghostway
-
Karlo Bala
- Posts: 373
- Joined: Wed Mar 22, 2006 10:17 am
- Location: Novi Sad, Serbia
- Full name: Karlo Balla
Re: tensorflow c++ model from keras model doesnt have "init" operation
I'm using cppflow2 for car recognition, and basically, I need only two operations, load net, and forward pass. It is enough to save net in a folder from Keras (no convert or whatsoever), and later just reload the model from cppflow2. Now, I'm not sure what are you trying to achieve.OfekShochat wrote: ↑Fri Dec 11, 2020 7:03 am hi, I dont know if this is good for this forum, but I ran into a problem when programming the network in my chess engine.
I use the cppflow c_api wrapper and I converted my model to a pb file with https://medium.com/@sebastingarcaacosta ... 740846d9eb and it works. when I try to initialize it says that there is no init operation and indeed when I get the operations it doesn't specify something close to "init". and when I do `tf.compat.v1.variables_initializer([])` it returns None.
does anyone know how to get an init operation in?
Best Regards,
Karlo Balla Jr.
Karlo Balla Jr.