# Bounds error for MINST training

**URL:** <https://discourse.julialang.org/t/bounds-error-for-minst-training/79296>\
**Category:** Pluto\
**Created:** [April 10, 2022, 11:40am UTC](https://discourse.julialang.org/t/bounds-error-for-minst-training/79296 "2022-04-10T11:40:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [April 10, 2022, 12:16pm UTC](https://discourse.julialang.org/t/bounds-error-for-minst-training/79296/2 "2022-04-10T12:16:07Z")

</div>

Your array has 3 dimensions and you’re trying to access it with 4.

You haven’t included all of the error message but I suppose it is train\_x as that has 4 dimensions in your snippet.

So wherever that is assigned is where your problem might lie.

I would advise reading this advice

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/bounds-error-for-minst-training/79296)._
