I think grow bag proportions are a bit different, they seem thinner, maybe you can get more plants for the soil that way. Compost bags are short and fat. That's why I thought GeorgePM might have wanted containers.
Compost bags would be good in terms of stopping soil from drying out - always the issue when you start growing in containers.