提供一些 framework 的 libary,加入 training code 中。
輸出需要的資料。
另外,也可以分析 training 的 log。
使用方法就是...
tensorboard --host 0.0.0.0 --logdir ./logs/fit/這樣 指定bind 的 ip,和告訴他 training log 的 path
他就會 run 起來,在 port 6006 提供服務(http server)。一直到 Ctrl-C 中斷為止。
tensorboard --host 0.0.0.0 --logdir ./logs/fit/這樣 指定bind 的 ip,和告訴他 training log 的 path
listener 1883 0.0.0.0 allow_anonymous true
#include <stdio.h>
size_t fread(void *buffer, size_t size, size_t count, FILE *stream);
那個中間的兩個:size, count 如果相反的話,就會一直 return 0 ,即使有正確讀到資料也一樣。
char buf[8];
size_t ret = fread(buf, sizeof(*buf), sizeof(buf)/sizeof(*buf), stdin);
printf("read %zu bytes\n", ret*sizeof(*buf));
Memory: 192820K/1046528K available (5182K kernel code, 490K rwdata, 1464K rodata, 320K init, 225K bss, 26316K reserved, 827392K cma-reserved)是在 mm/page_alloc.c:
void __init mem_init_print_info(const char *str)
{
..
..
pr_info("Memory: %luK/%luK available (%luK kernel code, %luK rwdata, %luK rodata, %luK init, %luK bss, %luK reserved, %luK cma-reserved"
#ifdef CONFIG_HIGHMEM
", %luK highmem"
#endif
"%s%s)\n",
nr_free_pages() << (PAGE_SHIFT - 10),
physpages << (PAGE_SHIFT - 10),
codesize >> 10, datasize >> 10, rosize >> 10,
(init_data_size + init_code_size) >> 10, bss_size >> 10,
(physpages - totalram_pages() - totalcma_pages) << (PAGE_SHIFT - 10),
totalcma_pages << (PAGE_SHIFT - 10),
#ifdef CONFIG_HIGHMEM
totalhigh_pages() << (PAGE_SHIFT - 10),
#endif
str ? ", " : "", str ? str : "");
git clone https://gitlab.com/procps-ng/procps.git git chekcout v4.0.0gettext,libncurses-dev,autopoint,libtool
./autogen.sh ./configure --disable-shared LDFLAGS=--static make