Use mlir::OpState::operator->() to get to methods of mlir::Operation.
This is a preparation step to remove those methods from OpState. PiperOrigin-RevId: 348838982 Change-Id: Iba4c3b5208a0b8352b06536660ba141b1574c445
This commit is contained in:
parent
60b9283c9e
commit
208bf5695b
@ -306,8 +306,8 @@ void IdentifyXlaShardingForTPUComputation(
|
||||
xla::sharding_builder::AssignDevice(0).SerializeAsString();
|
||||
|
||||
bool use_spmd = false;
|
||||
if (auto use_spmd_attr =
|
||||
cluster_func.getAttrOfType<BoolAttr>("use_spmd_for_xla_partitioning"))
|
||||
if (auto use_spmd_attr = cluster_func->getAttrOfType<BoolAttr>(
|
||||
"use_spmd_for_xla_partitioning"))
|
||||
use_spmd = use_spmd_attr.getValue();
|
||||
|
||||
IdentifyXlaShardingForComputationInputs(logical_core_0_sharding, use_spmd,
|
||||
|
Loading…
Reference in New Issue
Block a user