AnswerBun.com

Is it possible to run saved_model.predict() inside a session training another model on tensorflow

Stack Overflow Asked by Googra Heeljat on September 8, 2020

I have a problem where I have to pass image data its encoding and label data to complete the code. I am passing the three sequences through the feed_dict (using Tensorflow 1.x) in the training session. I want to calculate three losses namely reconstruction, classification, and encoding loss. The model training is an LSTM network that takes in an encoded sequence and produces a single encoded future step (self.output). Then I want to input this self.output to decoder_model.predict() and class_model.predict() so I can calculate the respective losses. I wanted to know if you may any suggestions as to why this problem is existing or any alternate solution. Please check out the code images if needed to understand it better.
Note: in the optimization image you will notice that the decoder_predict is commented. When I uncomment this the error is produced. I want use pre-trained models decoder and class_model to calculate reconstruction and class loss. Any help would be greatly appreciated!

Training function.
Optimization

Add your own answers!

Related Questions

R mutate multiple columns with ifelse

1  Asked on December 7, 2021 by qnp1521

   

How can I show the code of my program in the output in python?

2  Asked on December 7, 2021 by ayaan-singh-saundh

   

Can’t unzip file with php

3  Asked on December 7, 2021 by ciro-garca

     

why isn’t my local variable overwriting the global?

4  Asked on December 7, 2021 by pillow-study

   

Variable not assigned even though I assigned it (Android Java)

1  Asked on December 7, 2021 by ictwinner

   

Function to find string with only one emoji

1  Asked on December 7, 2021 by user1199595

 

How to group buttons on Google Closure editor?

1  Asked on December 7, 2021 by frenchcooc

 

Mark non db fields @Transient vs extent JPA Entity?

1  Asked on December 7, 2021 by bluelurker

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP