Skip to content

Commit

Permalink
Remove usages of bridge fallback.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 622990929
  • Loading branch information
tensorflower-gardener authored and tensorflow-copybara committed Apr 9, 2024
1 parent f872181 commit 98570a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ absl::Status TfrtSavedModelFactory::CreateTfrtSavedModelWithMetadata(
options.graph_execution_options.runtime_config));
}
if (config_.target_tpu()) {
compile_options.device_target = config_.enable_mlir_bridge_fallback()
? TfrtDeviceInfraTarget::kBridgeFallback
: TfrtDeviceInfraTarget::kTpurt;
compile_options.device_target = TfrtDeviceInfraTarget::kTpurt;
} else if (config_.enable_tfrt_gpu()) {
compile_options.device_target = TfrtDeviceInfraTarget::kGpu;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "tensorflow/core/protobuf/config.proto";
import "tensorflow_serving/servables/tensorflow/session_bundle_config.proto";

message TfrtSavedModelConfig {
reserved 1031;
reserved 1019, 1031;
reserved "online_cost_analysis_normalize_ratio";

// A SessionBundleConfig.
Expand Down Expand Up @@ -117,10 +117,6 @@ message TfrtSavedModelConfig {
// If true, use fuesd op for tpu compile, execute and data transfer.
bool use_fused_tpu_op = 1018;

// If true, TFRT will use fallback to handle unsupported features in MLIR
// Bridge.
bool enable_mlir_bridge_fallback = 1019;

// If true, tf.While's iterations will be parallelized.
bool enable_while_parallel_iterations = 1023;

Expand Down

0 comments on commit 98570a6

Please sign in to comment.