Does word "inventory" have the same meaning in the following two sentences?

They stopped selling in exact sizes in order to reduce inventory.

They carried a vast inventory of hardware.
the same meaning