waring解决
victory_泡泡
忙着努力,忙着可爱的程序媛
展开
-
Failed precondition: Python interpreter state is not initialized. The process may be terminated
只需要添加以下两行代码就可以了gpus = tf.config.experimental.list_physical_devices(‘GPU’)tf.config.experimental.set_memory_growth(gpus[0], True)原创 2021-06-28 19:59:46 · 5670 阅读 · 6 评论 -
DEV中c++11函数使用的那些坑
[Error] 'stoi' was not declared in this scope ,搜索了很多资料,终于发现了原来是这个原因,怎么也想不到!!!原创 2020-05-17 23:06:26 · 2681 阅读 · 2 评论 -
报错waring:multi-character character constant [-Wmultichar]
DEV:检查你的char数组的元素是否单个元素进行赋值,如char[n] = ‘a’,只能是一个元素。检查输出的单引号问题printf和cout输出%c类型是的空格,对于cin最最好是分开输出空格,printf就不会出现问题。...原创 2020-05-09 16:31:10 · 40767 阅读 · 0 评论