This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.utils.checkpoint as cp | |
from collections import OrderedDict | |
from torchvision.models.utils import load_state_dict_from_url | |
__all__ = ['DenseNet', 'densenet121', 'densenet169', 'densenet201', 'densenet161'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
import sys | |
import resource | |
import torch | |
import numpy as np | |
allocated_total = 0 | |
tensors = [] |