原创 tf.reduce_max,求最大值

用例對應的源代碼,覺得有幫助可以Star import tensorflow as tf import numpy as np # Computes the maximum of elements across dimensio

原创 tf.square,求平方和

用例對應的源代碼,覺得有幫助可以Star import tensorflow as tf # tf.square( # x, # name=None # ) # # Computes square

原创 tf.reduce_mean,求平均值

import tensorflow as tf import numpy as np # Computes the mean of elements across dimensions of a tensor. (deprecat

原创 tf.rank, 求矩陣的維度

用例對應的源代碼,覺得有幫助可以Star import tensorflow as tf # tf.rank( # input, # name=None # ) # # Returns the ra

原创 tf.sum, 求和

用例對應的源代碼,覺得有幫助可以Star import tensorflow as tf # tf.reduce_sum( # input_tensor, # axis=None, # keepdim

原创 ImportError: No module named tensorflow

導入tensorflow模塊失敗, with python2 pip show tensorflow 檢查是否安裝 python test.py 測試 with python3 pip3 show tensorflow 檢查是否安裝

原创 malloc與heapAlloc的區別

malloc 標準的C庫函數 heapAlloc Windows系統的API,平臺相關 類似如下 函數名 標準庫 Windows平臺 Linux平臺 打開文件 fopen OpenFile open

原创 打印結構體偏移

#include <stdio.h> #define OFFSET(x, y) &((x *)0)->y struct TestStruct { int mVar1; int mVar2; int mVar

原创 愛自己

早餐 +粥 +燕麥,奶粉,黑芝麻粉 +鮮牛奶 +花生粉,雞蛋 +核桃 +紅棗 工作 +枸杞 下午點心 +麪包 +香蕉 晚上 +泡腳 +核桃 +紅棗 +牛奶 <script>window._bd_

原创 解決問題模板

【關 鍵 詞】 【適用版本】 【問題描述】 【問題分析】 【解決方法】 【總結&建議】 <script>window._bd_share_config={"common":{"bdSnsKey":{},

原创 android studio去除 Fetching Android SDK component information

vi android-studio/bin/idea.properties 增加disable.android.first.run=true <script>window._bd_share_c

原创 clion 快捷鍵

Ctrl + Shift + U : 大小寫切換 Ctrl + Alt+ Insert: 新建類,源文件,頭文件 Ctrl + B: 定義 Split Vertically: 文件,右擊,屏幕多列 Alt + Insert : gen

原创 工作小結

1. 既然畫好流程圖,那就按照流程來敲代碼,不要邊碼邊改 2. 涉及到多進程(多線程),CS模式的交互,先畫出交互流程 3. 通信模塊,需要對輸入數據,輸出數據的兩個端點打印LOG 4. 測試的時候,堅決保

原创 linux命令源碼的查看

    在平常的作業中,有時候老師讓自己實現諸如cat等類的程序,有時候叫用shell實現,有時候用c實現,但是我經常一點頭緒都沒有,不過我想到linux開源的,命令代碼可以拿來參考下阿,所以我就想看看li

原创 概要設計思路

概要設計文檔:文檔內的每個結構是對同一事物的不通側重 基本流程:實現的流程 整體框圖:劃分爲多少模塊,模塊間如何協作 時序圖:不通類協作的時機與方法 1. 確定要實現哪些功能,一個一個列出;     有功能