Let’s read more what are the one way and two way memory?
One-way elements only remember a high temperature shape to which they return upon heating;
On the other hand, two-way elements remember the high temperature shape upon heating and the low temperature shape upon cooling;
A two-way behavior can also be achieved by combining a one-way element with a counterforce;
This reversible change of shape, with the aid of an external counter force provides a self-sustaining solution.

You may know what are the one way and two way clearly from these two charts at right side.