MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / _debug

Function _debug

NLP/Text2SQL-BASELINE/text2sql/launch/infer.py:143–151  ·  view source on GitHub ↗
(model, data, ofs)

Source from the content-addressed store, hash-verified

141
142
143def _debug(model, data, ofs):
144 for i, item in enumerate(tqdm.tqdm(data)):
145 (_, history), = model.compute_loss([item], debug=True)
146 ofs.write(
147 json.dumps({
148 'index': i,
149 'history': history,
150 }) + '\n')
151 ofs.flush()
152
153
154if __name__ == "__main__":

Callers 1

inferenceFunction · 0.85

Calls 1

compute_lossMethod · 0.45

Tested by

no test coverage detected