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
package com.example.myapplication | |
import android.app.Activity | |
import android.app.Service | |
import android.bluetooth.* | |
import android.content.Context | |
import android.content.pm.PackageManager | |
import android.widget.Toast | |
import android.bluetooth.BluetoothAdapter.LeScanCallback | |
import android.content.Intent |
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 time | |
import torch | |
import torch.nn as nn | |
import torchvision.models as models | |
from torch.autograd import Variable | |
if torch.cuda.is_available(): | |
print('Cuda avilable',torch.cuda.get_device_name(0)) | |
else: | |
print('cuda is not avilable') |