Fix propagation of objects with same defs.
PiperOrigin-RevId: 306503296 Change-Id: Ia979339155466f99da5d306eca87ac6abb626d92
This commit is contained in:
parent
38ef9c25ae
commit
3e414c752b
@ -136,10 +136,6 @@ class DefaultTensorTie : public TensorTie {
|
|||||||
if (!IsValid(def().external_def, obj)) {
|
if (!IsValid(def().external_def, obj)) {
|
||||||
return absl::InvalidArgumentError("Given object is not valid");
|
return absl::InvalidArgumentError("Given object is not valid");
|
||||||
}
|
}
|
||||||
// TODO(akulik): external object should propagate to internal.
|
|
||||||
if (IsSameDef()) {
|
|
||||||
return absl::UnimplementedError("Not supported");
|
|
||||||
}
|
|
||||||
external_obj_ = obj;
|
external_obj_ = obj;
|
||||||
return absl::OkStatus();
|
return absl::OkStatus();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user