/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef FLOAT_MODELS_IREE_EXEC_MOBILENET_V1_H_
#define FLOAT_MODELS_IREE_EXEC_MOBILENET_V1_H_

#include "model_util/util.h"

typedef struct {
  int best_idx;
  float best_out;
} MobilenetV1Output;

const MlModel kModel = {
    .num_input = 1,
    .num_input_dim = {4},
    .input_shape = {{1, 224, 224, 3}},
    .input_length = {224 * 224 * 3},
    .input_size_bytes = {sizeof(float)},
    .num_output = 1,
    .output_length = {1001},
    .output_size_bytes = sizeof(float),
    .hal_element_type = IREE_HAL_ELEMENT_TYPE_FLOAT_32,
    .entry_func = "module.main",
    .model_name = "mobilenet_v1_0.25_224_float",
};

#endif  // FLOAT_MODELS_IREE_EXEC_MOBILENET_V1_H_
