blob: b71c0fc0753b1ce7948de63b14c4244d3dec5ec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use serde::Deserialize;
use crate::args::GpuArgs;
use super::DefaultConfig;
#[derive(Clone, Debug, Default, Deserialize)]
pub(crate) struct GpuConfig {
#[serde(flatten)]
pub(crate) args: GpuArgs,
}
impl GpuConfig {
pub(crate) fn enabled(&self) -> bool {
self.args.enable_gpu.unwrap_or(false)
}
}
impl DefaultConfig for GpuConfig {
fn default_config() -> String {
todo!()
}
}
|