File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
tensorflow_serving/servables/tensorflow Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ struct RunOptionsBase {
36
36
// Requests with higher priority always get prioritized for latency over
37
37
// requests with lower priority. 0 is the lowest latency priority.
38
38
int32_t latency_priority = 0 ;
39
+
40
+ // If true, just-in-time host compilation is disabled, and then if the
41
+ // specified graph is not compiled, request execution will return an error.
42
+ // Supported only in TFRT servable. Ignored in non-TFRT servable.
43
+ bool disable_host_compilation = false ;
39
44
};
40
45
41
46
} // namespace servables
Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ TfrtSavedModelServable::GetTFRTSavedModelRunOptions(
98
98
}
99
99
options.validate_input_specs = config_.validate_input_specs ();
100
100
options.validate_input_specs_dry_run = config_.validate_input_specs_dry_run ();
101
+ if (run_options.disable_host_compilation ) {
102
+ options.disable_compilation = true ;
103
+ }
101
104
return options;
102
105
}
103
106
You can’t perform that action at this time.
0 commit comments