Merge pull request #38614 from Intel-tensorflow:nhasabni/mkl_eager_op_compile_fix
PiperOrigin-RevId: 306939573 Change-Id: Id5bbcca8608abcb590f246dfb661d812808cac09
This commit is contained in:
commit
d5743e269c
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user