Skip to content

Commit 439f8b2

Browse files
committed
header and comment
1 parent 23e0930 commit 439f8b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/viam/sdk/services/private/mlmodel_server.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
#include <viam/sdk/services/private/mlmodel_server.hpp>
1415

1516
#include <viam/sdk/common/private/service_helper.hpp>
1617
#include <viam/sdk/rpc/server.hpp>
1718
#include <viam/sdk/services/mlmodel.hpp>
1819
#include <viam/sdk/services/private/mlmodel.hpp>
19-
#include <viam/sdk/services/private/mlmodel_server.hpp>
2020

2121
namespace viam {
2222
namespace sdk {
@@ -56,11 +56,11 @@ ::grpc::Status MLModelServiceServer::Infer(
5656
inputs.emplace(tensor_pair.first, std::move(tensor));
5757
} else {
5858
// Normal case: multiple tensors, do metadata checks
59+
// If there are extra tensors in the inputs that not found in the metadata,
60+
// they will not be passed on to the implementation.
5961
for (const auto& input : md.inputs) {
6062
const auto where = request->input_tensors().tensors().find(input.name);
6163
if (where == request->input_tensors().tensors().end()) {
62-
// Ignore any inputs for which we don't have metadata, since
63-
// we can't validate the type info.
6464
// if the input vector of the expected name is not found, return an error
6565
std::ostringstream message;
6666
message << "Expected tensor input `" << input.name

0 commit comments

Comments
 (0)