Remove unused field InspectingPlacer::graph_.
This causes a warning when building with -Wunused-private-field. PiperOrigin-RevId: 261010830
This commit is contained in:
parent
2b20ee5f22
commit
e5c5e048a0
@ -539,7 +539,7 @@ ColocationGraph::ColocationGraph(const Graph* graph, const FunctionStack& stack,
|
||||
: graph_(*graph),
|
||||
stack_(stack),
|
||||
flib_def_(*flib_def),
|
||||
inspecting_placer_(graph, stack, flib_def, device_set, default_device,
|
||||
inspecting_placer_(stack, flib_def, device_set, default_device,
|
||||
allow_soft_placement, log_device_placement),
|
||||
inspection_required_checker_(graph, flib_def),
|
||||
device_set_(*device_set),
|
||||
|
@ -108,15 +108,13 @@ class ColocationGraphToIOColocationGroups {
|
||||
int next_group_id_;
|
||||
};
|
||||
|
||||
InspectingPlacer::InspectingPlacer(const Graph* graph,
|
||||
const FunctionStack& stack,
|
||||
InspectingPlacer::InspectingPlacer(const FunctionStack& stack,
|
||||
const FunctionLibraryDefinition* flib_def,
|
||||
const DeviceSet* device_set,
|
||||
const Device* default_device,
|
||||
bool allow_soft_placement,
|
||||
bool log_device_placement)
|
||||
: graph_(*graph),
|
||||
stack_(stack),
|
||||
: stack_(stack),
|
||||
flib_def_(*flib_def),
|
||||
device_set_(*device_set),
|
||||
default_device_(default_device),
|
||||
|
@ -69,7 +69,7 @@ class InspectingPlacer {
|
||||
// TODO(iga): Add a "stack trace" to detect recursion and improve log
|
||||
// messages. Currently, we will enter an infinite loop for recursive
|
||||
// functions.
|
||||
InspectingPlacer(const Graph* graph, const FunctionStack& stack,
|
||||
InspectingPlacer(const FunctionStack& stack,
|
||||
const FunctionLibraryDefinition* flib_def,
|
||||
const DeviceSet* device_set, const Device* default_device,
|
||||
bool allow_soft_placement, bool log_device_placement);
|
||||
@ -80,7 +80,6 @@ class InspectingPlacer {
|
||||
IOColocationGroups* groups);
|
||||
|
||||
private:
|
||||
const Graph& graph_;
|
||||
const FunctionStack stack_;
|
||||
const FunctionLibraryDefinition& flib_def_;
|
||||
const DeviceSet& device_set_;
|
||||
|
Loading…
Reference in New Issue
Block a user