blob: 57cfb1cd43b2ec189af9a873c4552996a1cf0ef5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server;
import com.yahoo.config.model.api.OnnxModelCost;
import com.yahoo.container.di.componentgraph.Provider;
/**
* Default provider that provides a disabled {@link OnnxModelCost} instance.
*
* @author bjorncs
*/
public class FallbackOnnxModelCostProvider implements Provider<OnnxModelCost> {
@Override public OnnxModelCost get() { return OnnxModelCost.disabled(); }
@Override public void deconstruct() {}
}
|