I have a problem with the subscription of the week’s assignment number 2. I always get this error while before i did not
Cell #16. Can’t compile the student’s code. Error: ValueError(‘Please provide to Input either a shape
or a tensor
argument. Note that shape
does not include the batch dimension.’)
Which week and assignment are you referring to?
week 2 assignment 2 about the Transfer_learning_with_MobileNet_v1. Thank you
the problem has actually vanished. thank you
But still i receive an error due to the accuracy function that i do not understand:
and in the grading window: Unexpected error occurred during variable check. We expected variable
metrics
to be of type <class ‘str’>. Please check that this variable is initialized and is of the right type.If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.
I think that i have used the right one but the corrector cannot identify it
Could you please help me?
How did you assign the metrics variable?
“accuracy” is not a function. It’s just a text string inside square brackets.
That’s the problem. It isn’t a layer.
It’s just a text string inside square brackets.
ok thank you but still, I don’t get how to fix it. Do I need to assign the string outside the layer? Thank you in advance
I’ve already said how to fix it twice. Read my posts again.
You can also read this thread.
thank you so much for helping