# Copyright (c) 2022 Graphcore Ltd. All rights reserved.
#
# 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.

efficientdet-base: &efficientdet-base
  opt_use_io_tiles: true
  opt_num_io_tiles: 96
  opt_prefetch_data_streams: true
  opt_prefetch_depth: 4

efficientdet-d0:
  <<: *efficientdet-base
  micro_batch_size: 4

efficientdet-d1:
  <<: *efficientdet-base
  micro_batch_size: 3

efficientdet-d2:
  <<: *efficientdet-base
  micro_batch_size: 2

efficientdet-d3:
  <<: *efficientdet-base
  opt_use_io_tiles: false
  opt_internal_exchange_target: "memory"
  micro_batch_size: 1

efficientdet-d4:
  <<: *efficientdet-base
  opt_use_io_tiles: false
  opt_internal_exchange_target: "memory"
  micro_batch_size: 1
  available_memory_proportion: 0.2
