Skip to content

Runtime Error Using DirectML Device #261

@FXJLK

Description

@FXJLK

Using the train script for the yolov3 sample I get this error when trying to use DML as a device:

[libprotobuf FATAL D:\a_work\1\s\pytorch-directml\caffe2\dml\dml_operator.cc:116] CHECK failed: ((((HRESULT)((backend_->dml_device->CreateOperator(&op_desc_, uuidof(**(&op)), IID_PPV_ARGS_Helper(&op))))) >= 0)) == (true):
Traceback (most recent call last):
File "train.py", line 543, in
train(hyp, opt, device, tb_writer)
File "train.py", line 235, in train
model.class_weights = labels_to_class_weights(dataset.labels, nc).to(device) * nc # attach class weights
RuntimeError: CHECK failed: ((((HRESULT)((backend
->dml_device->CreateOperator(&op_desc
, __uuidof(**(&op)), IID_PPV_ARGS_Helper(&op))))) >= 0)) == (true):

I can use detect.py with both CPU and DML and I can also use train.py using the cpu but I get this wierd error trying to train using DML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pytorch-directmlIssues in PyTorch when using its DirectML backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions