Remove HostModule.
PiperOrigin-RevId: 209640734
This commit is contained in:
parent
237cb7f7d0
commit
c61a49ec31
@ -72,15 +72,6 @@ class HloModuleConfig {
|
|||||||
return debug_options_.xla_hlo_profile();
|
return debug_options_.xla_hlo_profile();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sets/returns whether this is a "host module". Host modules are used to
|
|
||||||
// record the data- and control-flow dependencies of host side computation
|
|
||||||
// that communicates with compiled code. They are used for analysis and
|
|
||||||
// scheduling purposes, but no code is generated.
|
|
||||||
bool is_host_module() const { return is_host_module_; }
|
|
||||||
void set_is_host_module(bool is_host_module) {
|
|
||||||
is_host_module_ = is_host_module;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sets/returns the module seed set during execution.
|
// Sets/returns the module seed set during execution.
|
||||||
void set_seed(uint64 seed) { seed_ = seed; }
|
void set_seed(uint64 seed) { seed_ = seed; }
|
||||||
uint64 seed() const { return seed_; }
|
uint64 seed() const { return seed_; }
|
||||||
|
@ -287,10 +287,7 @@ tensorflow::gtl::optional<int64> HloModuleGroupMetadata::GetInstructionDevice(
|
|||||||
}
|
}
|
||||||
|
|
||||||
int64 HloModuleGroupMetadata::GetDeviceModulesCount() const {
|
int64 HloModuleGroupMetadata::GetDeviceModulesCount() const {
|
||||||
return std::count_if(modules_.begin(), modules_.end(),
|
return modules_.size();
|
||||||
[](const HloModule* module) {
|
|
||||||
return !module->config().is_host_module();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Status HloModuleGroupMetadata::RecordInstructions() {
|
Status HloModuleGroupMetadata::RecordInstructions() {
|
||||||
|
Loading…
Reference in New Issue
Block a user