question

wei-ting L avatar image
0 Likes"
wei-ting L asked wei-ting L commented

My batch size in not correct

I have a model that breaks batch size information into sub-batches if it goes over 250. Because my maximum load of the combiner is only 250.

However, when I test it, the logic is not correct. If my order information requires a batch of size 450, the system is able to break this into 2 batches (first batch 250, second batch 200 ). This is okay.

However, if my order information requires a batch of size 1000, the system is not performing correctly, it will only break it into two batches, first one 250, the second one 750. My desired logic is that it should be four batches. (250+250+250+250).

Can anyone help me to see which part of my process flow is wrong? How can I use a loop to check my batches to make sure every token's label "batchsize" does not exceeds 250?

I've also attached my model here10-24-dynamic.fsm

batch processing
help.png (34.8 KiB)
10-24-dynamic.fsm (103.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
jing.c avatar image
2 Likes"
jing.c answered wei-ting L commented

hi @wei-ting L

If you try to reorder "Create Tokens" and "Assign Labels on Token" and add "BatchSize>250" after that, it will realize what you want.

Let me know if any other question about this pf logic.


capture.png (37.8 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

wei-ting L avatar image wei-ting L commented ·

Hi Jing,

Thank you ! I was able to achieve the same result by adding a line from "create tokens" to "BatchSize" nodes. Thanks.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.