For example, if I have the following data:
x = tf.placeholder("float", [None, n, n]) y = tf.placeholder("float", [None, n, n])
Is there a difference between the two operations?
res = tf.matmul(x,y) res = tf.batch_matmul(x,y)
tf.batch_matmuldeprecated in favor tf.matmulof version 0.12 and later, so there is no difference in later versions. In earlier versions it was required to introduce rank-2 for matmul, but for earlier ranks forbatch_matmul
tf.batch_matmul
tf.matmul
matmul
batch_matmul
Source: https://habr.com/ru/post/1668277/More articles:Как удалить, который сразу следует за? - javascriptWhat is the correct encoding for PS1 files - powershellCompare the two cells as formatted - excel-vbaНе удается запустить тесты в проекте XCode, который импортирует другую структуру - iosC # read the next line from the clipboard and wrap the line in quotation marks? - c #создание селектора символов JavaScript - javascriptObjects of immovable classes are not subject to change? - c ++How to fix this subproject path: CordovaLib error: spawn EACCES - node.jsangular2 MdDialog does not appear as a popup - angularRemoving comments from pg_dump output - sqlAll Articles