Is there a way to use tensorflow map_fn on GPU?
问题 I have a tensor A with shape [a,n] and I need to perform an op my_op with another tensor B of shape [b,n] such that the resulting tensor C has shape [a,b]. In other words: For each subtensor in A (A[0], A1,...A[n]) I need to perform an element wise op with each subtensor in B . So the resulting tensor would contain the following: [ [ A[0] op B[0] , A[0] op B[1], ... , A[0] op B[b] ], [ A[1] op B[0] , A[1] op B[1], ... , A[1] op B[b] ], [ ... ], [ A[a] op B[0] , A[a] op B[1], ... , A[a] op B[b