finished implementation of GetTensorFromStorage