In the glassy state, the movements of the long chain segments are frozen, the movements of these segments depend on an activation temperature that brings the polymer to a smoothing and elastic state, the rotation on the carbon bonds and the movements of the chains no longer have strong impediments to accommodate and acquire the conformation that requires less energy, the chains then "unravel" forming random strings, without order and therefore with higher entropy.
If a polymer sample is stretched for a short time in the elastic range, when the load is removed, the sample will recover its original shape, but if the load remains for a sufficiently long period, the chains rearrange and the original shape is not recovered, the result is an irreversible deformation, also called relaxation process (in this case: creep).
In order for a polymer to exhibit the thermally induced shape-memory effect, it is necessary to fix the chains with anchor points to avoid these relaxation processes that inelastically modify the system.