# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import sys
import torch
def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+F8 to toggle the breakpoint.
    print(sys.version)
    print(torch.__version__)
    print(torch.cuda.is_available())
    print(torch.cuda.device_count())
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    print_hi('PyCharm')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
                
            
                 Previous
            
                        
                        PyTorch_2_PyTorch加载数据&Dataset类代码实战
                    
                        
                            2021-11-02
                        
                        
                    
                
                Next 
            
            
                        
                        HI3516DV300_22_根文件系统解析3
                    
                            
                                2021-10-28