- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for AddNOp (0.09 sec)
-
tensorflow/compiler/mlir/tfr/README.md
else: return res ``` Besides defining new ops, composition can be specified for an existing op for portability. The following code defines the semantics of `AddNOp`: ```python @Composite('AddNOp') def _my_op_c(ins): N = len(ins) if N == 1: return ins[0] sum = ins[0] for i in range(1, N): sum += ins[i] return sum ```
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 29 18:32:13 UTC 2022 - 6.2K bytes - Viewed (0)