MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / decode

Method decode

test/legacy_test/test_crf_decoding_op.py:82–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 decoded_path[i - 1] = max_idx = track[i, max_idx]
81
82 def decode(self):
83 cur_pos = 0
84 for i in range(self.seq_num):
85 start = cur_pos
86 cur_pos += self.seq_start_positions[i]
87 end = cur_pos
88 self._decode_one_sequence(
89 self.decoded_path[start:end, :], self.x[start:end, :]
90 )
91 return self.decoded_path
92
93
94class TestCRFDecodingOp1(OpTest):

Callers 15

set_test_dataMethod · 0.95
set_test_dataMethod · 0.95
git_commitFunction · 0.80
is_taggedFunction · 0.80
build_cutlass3_src_codeFunction · 0.80
check_build_dependencyFunction · 0.80
_request_graphqlMethod · 0.80
get_ut_memFunction · 0.80
run_shell_commandFunction · 0.80
exec_gen_docFunction · 0.80
pty_runFunction · 0.80

Calls 2

_decode_one_sequenceMethod · 0.95
rangeFunction · 0.85

Tested by

no test coverage detected