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