[TF:MLIR] When importing GraphDef to MLIR for tfcompile, set upgrade_legacy flag
to allow the functionalization of TensorFlow V1 control flow. PiperOrigin-RevId: 295242525 Change-Id: Icf22382c788cd6da2a65cfd8b6a349e11ce8c489
This commit is contained in:
parent
b380277f3a
commit
1e74a754af
@ -110,7 +110,7 @@ Status ConvertGraphDefToXlaViaMlir(GraphDef graph_def,
|
||||
specs.prune_unused_nodes = false;
|
||||
specs.convert_legacy_fed_inputs = false;
|
||||
specs.graph_as_function = false;
|
||||
specs.upgrade_legacy = false;
|
||||
specs.upgrade_legacy = true;
|
||||
TF_RETURN_IF_ERROR(ConvertInputInfo(config, feed_name_remap, &specs));
|
||||
TF_RETURN_IF_ERROR(ConvertOutputInfo(config, &specs));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user