tensorflow中的reduce_xx系列函數

所謂reduce就是降維的意思, 我們以reduce_sum函數爲例 調用reduce_sum(arg1, arg2)時,參數arg1即爲要求和的數據,arg2有兩個取值分別爲0和1,通常用reduction_indices=[0]或reduction_indices=[1]來傳遞參數。   從上圖可以看出,當arg2(reduction_indices) = 0時,是縱向對矩陣求和(對行求和),
相關文章
相關標籤/搜索