1 write to Device
Microsoft.ML.TorchSharp (1)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
538Device = TorchUtils.InitializeDevice(env);
4 references to Device
Microsoft.ML.TorchSharp (4)
AutoFormerV2\ObjectDetectionTrainer.cs (4)
549if (Device.type == DeviceType.CUDA) 919var midTensor0 = torch.tensor(image.GetBGRPixels, device: _parent.Device); 935var transMidTensor = torch.zeros(1, 3, image.Height + padH, image.Width + padW, device: _parent.Device); 937var imageTensor = ObjectDetectionTrainer.Trainer.Normalize(transMidTensor, _parent.Device);