Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My model has no attribute 'inputs' #23

Open
binlbl opened this issue Aug 20, 2021 · 1 comment
Open

My model has no attribute 'inputs' #23

binlbl opened this issue Aug 20, 2021 · 1 comment

Comments

@binlbl
Copy link

binlbl commented Aug 20, 2021

My model produces errors in the get_concrete_function:
full_model = full_model.get_concrete_function(
tf.TensorSpec(model.inputs[0].shape, model.inputs[0].dtype, name="Input_1"))

line 37, in
tf.TensorSpec(model.inputs[0].shape, model.inputs[0].dtype, name="Input_1"))
AttributeError: '_UserObject' object has no attribute 'inputs'

@binlbl binlbl changed the title How to specify the parameters in the get_concrete_function() My model has no attribute 'inputs' Aug 20, 2021
@williamj20
Copy link

hey, I have the exact same issue you're describing. Did you ever find a workaround to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants