timesfm icon indicating copy to clipboard operation
timesfm copied to clipboard

different forecast result from different batch_size?

Open veelion opened this issue 11 months ago • 0 comments

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], ...)

veelion avatar Jan 17 '25 03:01 veelion