The Tensorflow get the key error of model_fn feature parameter #2355
Unanswered
DavidJohn197749
asked this question in
Help
Replies: 2 comments
-
Hello @DavidJohn197749, I'm not a TensorFlow expert, so I'll reach out to the team that specializes in TensorFlow. In the meanwhile, it looks like the feature key "content_input_ids" isn't found within the features object. According to the documentation, that feature is defined in the train_input_fn, in which you return dataset object. The key may potentially not be exposed properly or the dataset object may not be a dict, as expected by your model_fn definition. Reference: |
Beta Was this translation helpful? Give feedback.
0 replies
-
I met the same error. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please fill out the form below.
System Information
Describe the problem
I am using sagemaker to train the tensorflow model. At the beginning, everything is ok, but It get the key error of feature after the first evaluation.
Here is my code:
Minimal repro / logs
Beta Was this translation helpful? Give feedback.
All reactions