fix:directml edition det

This commit is contained in:
wataru 2023-06-18 15:57:18 +09:00
parent 73f564cfa8
commit dda7ab008b
3 changed files with 2 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,5 @@
import React, { useMemo } from "react"; import React, { useMemo } from "react";
import { useGuiState } from "./001_GuiStateProvider"; import { useGuiState } from "./001_GuiStateProvider";
// import { getMessage } from "./messages/MessageBuilder";
import { isDesktopApp } from "../../const"; import { isDesktopApp } from "../../const";
import { useAppRoot } from "../../001_provider/001_AppRootProvider"; import { useAppRoot } from "../../001_provider/001_AppRootProvider";
import { useMessageBuilder } from "../../hooks/useMessageBuilder"; import { useMessageBuilder } from "../../hooks/useMessageBuilder";

View File

@ -25,7 +25,7 @@ export const ConvertArea = (props: ConvertProps) => {
name: "cpu", name: "cpu",
memory: 0 memory: 0
}) })
const gpuSelect = edition == "onnxdirectML-cuda" ? ( const gpuSelect = edition.indexOf("onnxdirectML-cuda") >= 0 ? (
<div className="config-sub-area-control"> <div className="config-sub-area-control">
<div className="config-sub-area-control-title">GPU(dml):</div> <div className="config-sub-area-control-title">GPU(dml):</div>
<div className="config-sub-area-control-field"> <div className="config-sub-area-control-field">