remove print statements
This commit is contained in:
parent
7b0d73664d
commit
09dfc518c1
|
@ -50,7 +50,6 @@ def wrap_encoder(text_encoder):
|
|||
)
|
||||
elif output_hidden_states is True:
|
||||
hidden_states = [torch.from_numpy(state) for state in outputs[2:]]
|
||||
print("outputs", outputs)
|
||||
return SimpleNamespace(
|
||||
last_hidden_state=torch.from_numpy(outputs[0]),
|
||||
pooler_output=torch.from_numpy(outputs[1]),
|
||||
|
|
|
@ -181,13 +181,9 @@ class OnnxPromptVisitor(PTNodeVisitor):
|
|||
]
|
||||
|
||||
def visit_pos_phrase(self, node, children):
|
||||
print("positive phrase", len(children), children)
|
||||
|
||||
return parse_phrase(children, self.pos_weight)
|
||||
|
||||
def visit_neg_phrase(self, node, children):
|
||||
print("negative phrase", len(children), children)
|
||||
|
||||
return parse_phrase(children, self.neg_weight)
|
||||
|
||||
def visit_phrase(self, node, children):
|
||||
|
|
Loading…
Reference in New Issue