This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::char::decode_utf16; | |
use std::collections::BTreeSet; | |
use std::ffi::c_void; | |
use std::mem::{self, ManuallyDrop}; | |
use std::sync::mpsc::{channel, Receiver, RecvTimeoutError, Sender}; | |
use std::sync::OnceLock; | |
use std::thread; | |
use std::time::Duration; | |
use windows::core::{Error, Interface, Result, GUID}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %% | |
import tensorflow as tf | |
tf.config.set_visible_devices([], 'GPU') | |
# %% | |
model = tf.saved_model.load("model") | |
predict = model.signatures["predict"] | |
# %% | |
class HyperParameter: |