提交 d4e9abaf 编写于 作者: W Wilsin Gosti 提交者: TensorFlower Gardener

#tf-data Remove an unnecessary mutex lock when removing a model node.

PiperOrigin-RevId: 564739804
上级 ac641ea5
......@@ -2336,7 +2336,6 @@ void Model::Optimize(AutotuneAlgorithm algorithm, int64_t cpu_budget,
}
void Model::RemoveNode(std::shared_ptr<Node> node) {
mutex_lock l(mu_);
if (node) {
if (node->output() && !node->output_deleted()) {
node->output()->remove_input(node);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册