zhenwei
zhenwei
int vector_move(Vector* destination, Vector* source) { assert(destination != NULL); assert(source != NULL); if (destination == NULL) return VECTOR_ERROR; if (source == NULL) return VECTOR_ERROR; *destination = *source; source->data = NULL;...
➜ rustsbi-k210 ls /dev/ttyUSB0 /dev/ttyUSB0 ➜ rustsbi-k210 cargo k210 Finished dev [unoptimized + debuginfo] target(s) in 0.01s Running `target/debug/xtask k210` xtask: no serial port found; program exit
add GPU
from https://github.com/oreilly-japan/deep-learning-from-scratch-2 if GPU: import cupy as np np.cuda.set_allocator(np.cuda.MemoryPool().malloc) np.add.at = np.scatter_add print('\033[92m' + '-' * 60 + '\033[0m') print(' ' * 23 + '\033[92mGPU Mode (cupy)\033[0m') print('\033[92m' + '-'...