Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (17.6k points)

I'm not sure what this error means. This error occurs when I try to calculate acc:

acc = accuracy.eval(feed_dict = {x: batch_images, y: batch_labels, keep_prob: 1.0})

I've tried looking up solutions, but I couldn't find any online. Any ideas on what's causing my error?

Here's a  link to my full code.

1 Answer

0 votes
by (41.4k points)

The error is generated by the below source code:

OP_REQUIRES(context, axis >= 0 && axis < input_dims, errors::InvalidArgument("Expected dimension in the range [", -input_dims, ", ", input_dims, "), but got ", dim));

Here, axis should be less than input_dims, not less-than-or-equal.

[-1,1) in the error message shows that ‘[’ indicates an inclusive value such that -1 is valid and ‘)’ indicates an exclusive value.

If you wish to learn more about how to use python for data science, then go through data science python programming course by Intellipaat for more insights.

Browse Categories

...