allow setting quantizedLayers of WebGPU mode; chore

This commit is contained in:
josc146
2024-03-01 14:23:05 +08:00
parent c9513822c9
commit 887ba06bd6
8 changed files with 46 additions and 10 deletions

View File

@@ -10,9 +10,10 @@ export const NumberInput: FC<{
onChange?: (ev: React.ChangeEvent<HTMLInputElement>, data: SliderOnChangeData) => void
style?: CSSProperties,
toFixed?: number
}> = ({ value, min, max, step, onChange, style, toFixed = 2 }) => {
disabled?: boolean
}> = ({ value, min, max, step, onChange, style, toFixed = 2, disabled }) => {
return (
<Input type="number" style={style} value={value.toString()} min={min} max={max} step={step}
<Input type="number" style={style} value={value.toString()} min={min} max={max} step={step} disabled={disabled}
onChange={(e, data) => {
onChange?.(e, { value: Number(data.value) });
}}