Implement a Freeze() api to release host memory for device tensors.
Implement a Freeze() api to release host memory for device tensors.
Whether a restored tensor can be released is based on whether it is
ever used by the CPU/Host ops and this information comes
from compiler.
