【备忘录】一些记不住的东西

备忘录

  • 2022.11.20日

pytorch 不安装cuda,cudnn 方法:

建立虚拟环境:

conda create -n xx python=3.8
conda remove -n xxx --all
pip3 install torch==1.8.2 torchvision==0.9.2 torchaudio==0.8.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cu111

pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

日语系统的更改

【备忘录】一些记不住的东西_第1张图片
2022.11.22 日

class initial(object):
    def __init__(self, f1 = 222):
        self.f1 = f1

    def pri(self):
        print("hello, F1 :", self.f1)


class new(initial):
    def __init__(self):
        print("this print is for new function. ")
        self.f1 = 33
        print('before the super function : ', self.f1)

        #
        super(new, self).__init__()

        print('after the super function : ', self.f1)

if __name__ == '__main__':
    new()
# before the super function :  33
# after the super function :  222

你可能感兴趣的:(杂烩,pytorch,深度学习,python)