Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different forecast result from different batch_size? #220

Open
veelion opened this issue Jan 17, 2025 · 0 comments
Open

different forecast result from different batch_size? #220

veelion opened this issue Jan 17, 2025 · 0 comments

Comments

@veelion
Copy link

veelion commented Jan 17, 2025

Hi all,

I use the model to forecast use same data but different batch_size, and get different size.

Firstly, batch_size=1, inference process:
for i, input in enumerate(inputs):
result, _ = tfm.forecast_with_covariate(inputs=[input], ...)

Second, batch_size = 10:
for i in rang(0, len(inputs), batch_size):
result, _ = tfm.forecast_with_covariate(inputs=inputs[i: i+batch_size], ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant