Closed jacksonwalters closed 1 year ago
self.step_range_float was 603, when it should've been 601. tracing the error, step_range_float depends on step_range_int which depends on num_steps. in line 344, num_steps = int(math.ceil(max_value) + 1 - math.floor(min_value)). max_value is a result of contractive mapping, which yields max_value=300.00012 and min_value=-300.00012. Applying ceil gives 301, floor gives -301. this gives a range of 603, which is wrong. swapping floor and ceil, we get max_value=300 and min_value=-300, which gives the correct range of 601 and allows the code to run.
this is likely not a hardware issue, but it is possible different hardware will yield small differences in the value of contractive mapping, perhaps 299.99988 and -299.99988 or something like that, so one must be careful here.
Tried running main with no modifications on Apple M1 hardware ([https://caffeinedev.medium.com/how-to-install-tensorflow-on-m1-mac-8e9b91d93706]), and receiving
InvalidArgumentError: Incompatible shapes: [1,601] vs. [603] [Op:Mul]
error.