@@ -71,7 +71,7 @@ class ReleaseModeModelRunner final : public MLModelRunner {
71
71
// of the model selector to {high, low}
72
72
bool InputIsPresent = true ;
73
73
populateTensor (InputSpec.size (),
74
- TensorSpec::createSpec<uint64_t >(" _model_selector " , {2 }),
74
+ TensorSpec::createSpec<uint64_t >(" model_selector " , {2 }),
75
75
Options.FeedPrefix , InputIsPresent);
76
76
77
77
// If we hit the "report an error" cases outlined above, continue with the
@@ -80,21 +80,21 @@ class ReleaseModeModelRunner final : public MLModelRunner {
80
80
if (Options.ModelSelector .empty () && InputIsPresent)
81
81
Ctx.emitError (
82
82
" A model selector was not specified but the underlying model "
83
- " requires selecting one because it exposes a _model_selector input" );
83
+ " requires selecting one because it exposes a model_selector input" );
84
84
uint64_t High = 0 ;
85
85
uint64_t Low = 0 ;
86
86
if (!Options.ModelSelector .empty ()) {
87
87
if (!InputIsPresent)
88
88
Ctx.emitError (" A model selector was specified but the underlying model "
89
- " does not expose a _model_selector input" );
89
+ " does not expose a model_selector input" );
90
90
const auto Hash = MD5::hash (arrayRefFromStringRef (Options.ModelSelector ));
91
91
High = Hash.high ();
92
92
Low = Hash.low ();
93
93
}
94
94
getTensor<uint64_t >(InputSpec.size ())[0 ] = High;
95
95
getTensor<uint64_t >(InputSpec.size ())[1 ] = Low;
96
96
// At this point, the model selector is set up. If the user didn't provide
97
- // one, but the model has a _model_selector , it'll be set to (0, 0) which
97
+ // one, but the model has a model_selector , it'll be set to (0, 0) which
98
98
// the composite model should treat as error as part of its implementation
99
99
// (but that should only matter if there is a custom handler that doesn't
100
100
// exit on error)
0 commit comments