Quantcast
Viewing latest article 9
Browse Latest Browse All 9

Answer by Jed for Tensorflow: Cannot interpret feed_dict key as Tensor

Similar to @javan-peymanfard and @hmadali-shafiee, I ran into this issue when loading the model in an API. I was using FastAPI with uvicorn. To fix the issue I just set the API function definitions to async similar to this:

@app.post('/endpoint_name')async def endpoint_function():    # Do stuff here, including possibly (re)loading the model

Viewing latest article 9
Browse Latest Browse All 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>