hector1980
hector1980
In \.pub-cache\hosted\pub.dartlang.org\background_locator-1.6.12\lib\location_dto.dart, I have modified the LocationDto.fromJson function as follows. factory LocationDto.fromJson(Map json) { bool? isLocationMocked = Platform.isAndroid ? json[Keys.ARG_IS_MOCKED] : false; return LocationDto._( json[Keys.ARG_LATITUDE] ?? 0.0, json[Keys.ARG_LONGITUDE] ?? 0.0,...
That is because self.batch_size is incorrectly used in the forward function. Obviously, X_test use a different batch size. Just leave it like this: lstm_out, self.hidden = self.lstm(input) y_pred = self.linear(lstm_out[-1])