Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/FasterTransformer
/ reduce
Method
reduce
examples/tensorflow/decoder/utils/reducer.py:133–134 ·
view source on GitHub ↗
(self, inputs)
Source
from the content-addressed store, hash-verified
131
""
"A reducer that sums the inputs."
""
132
133
def
reduce(self, inputs):
134
return
tf.add_n(inputs)
135
136
def
reduce_sequence(self, inputs, sequence_lengths):
137
padded, combined_length = pad_n_with_identity(
Callers
1
reduce_sequence
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected