mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 12:20:24 +01:00
Change device string in RecvNodeDescriptor in VirtualScheduler from const
reference to const as the RecvNodeDescriptor (and cached_recv_nodes map) outlives device string from the NodeDef. PiperOrigin-RevId: 165748244
This commit is contained in:
parent
57b0276cf9
commit
65f87c967c
|
|
@ -62,7 +62,7 @@ Costs CombineCosts(const Costs& left, const Costs& right) {
|
||||||
struct RecvNodeDescriptor {
|
struct RecvNodeDescriptor {
|
||||||
const NodeDef* node;
|
const NodeDef* node;
|
||||||
const int port_num;
|
const int port_num;
|
||||||
const string& device;
|
const string device;
|
||||||
|
|
||||||
RecvNodeDescriptor(const NodeDef* node_, const int port_num_,
|
RecvNodeDescriptor(const NodeDef* node_, const int port_num_,
|
||||||
const string& device_)
|
const string& device_)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user