Skip to content

Commit

Permalink
Add an option to override to the size of GPU system
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 564804399
  • Loading branch information
guanxinq authored and tensorflow-copybara committed Sep 21, 2023
1 parent 1f5d8d7 commit 445a87b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ absl::Status TfrtSavedModelFactory::CreateTfrtSavedModelWithMetadata(
options.graph_execution_options.run_placer_grappler_on_functions =
config_.run_placer_grappler_on_functions();
options.graph_execution_options.enable_tfrt_gpu = config_.enable_tfrt_gpu();
options.graph_execution_options.gpu_system_memory_size_in_mb =
config_.gpu_system_memory_size_in_mb();
options.graph_execution_options.enable_grappler_function_optimizer =
config_.enable_grappler_function_optimizer();
options.graph_execution_options.enable_online_cost_analysis =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ message TfrtSavedModelConfig {
}
PredictResponseTensorSerializationOption
predict_response_tensor_serialization_option = 2014;
// The size of reserved memory space for GPU system.
int32 gpu_system_memory_size_in_mb = 2015;
}

// Config proto for TfrtSavedModelSourceAdapter.
Expand Down

0 comments on commit 445a87b

Please sign in to comment.