Hi guys, I try to implement the model for tensorflow2.5.0, but when I run the model, its print my loss return ‘none’, and show the error message: “RuntimeError: Attempting to capture an EagerTensor without building a function”.
Hope guys help me find the bug.
This is my model code:
There is I have check:
- I checked my dataset. There is not none data.
- I checked my loss function, there is no nd.array, I change in tf.tensor.
This is my first time ask question on the website, if I need provide other code information to solve problem, I will upload. Thanks.