[Intel MKL] Fixing mkl_eager_op_rewrite compile error

This PR fixes build error in --config=mkl introduced by an API change in EagerOperation.
This commit is contained in:
Niranjan Hasabnis 2020-04-16 14:41:20 -07:00
parent 83eeaab4b3
commit 2989b49a5a

View File

@ -136,7 +136,7 @@ Status MklEagerOpRewrite::SetupNewOp(
->Set("_kernel", mkl_op_registry::kMklNameChangeOpLabel);
if (orig_op->Device() == kVariantDeviceNull) {
string device_name = orig_op->GetDeviceName();
string device_name = orig_op->DeviceName();
(*new_mkl_op)->SetDeviceName(device_name.c_str());
} else if (VariantDeviceIsCustom(orig_op->Device())) {
(*new_mkl_op)->SetDevice(absl::get<CustomDevice*>(orig_op->Device()));