के प्रत्येक तत्व के लिए ओप लागू करता है जो मैं बाद में 2 डी टेंसर के प्रत्येक तत्व के लिए एक tensorflow सेशन लागू करने की क्षमता है।Tensorflow 2 डी टेंसर
input = tf.Variable([[1.0, 2.0], [3.0, 4.0])
myCustomOp = ... # some kind of custom op that operates on 1D tensors
finalResult = tf.[thing I'm after](input, myCustomOp)
# when run final result should look like: [myCustomOp([1.0, 2.0]), myCustomOp([3.0, 4.0)]
कोई विचार?
शायद 'map_fn'? डॉक्स - https://github.com/tensorflow/tensorflow/blob/5688f5bc27e65886ca84ea4a9d58f4bb7701964b/tensorflow/g3doc/api_docs/python/control_flow_ops.md#tfmap_fnfn-elems-dtypenone-parallel_iterations10-back_proptrue-swap_memoryfalse-namenone-map_fn –