Closed davidlvxin closed 3 years ago
In the new version of PyTorch, integer division should be done with //
.
action_beam_offset = action_ind / action_space_size
in function top_k_action
and top_k_action_r
needs to be changed to
action_beam_offset = action_ind // action_space_size
How can you find the rule path?
I write codes to generate them by myself.
Could you please show me the file or the format of the rules, since I have run the code in the anyBURL mentioned in this paper, but I found out the format of the rule file didn't match. I wonder if I made something wrong.
I write codes to generate them by myself.
Can you share the code for generating rules?
when I pre-train relation agent using top rules with the following command
I get the following error information.
It seems that
action_beam_offset
in thetop_k_action
function inbeam_search.py
is float type. This is obviously going to raise an error because the index cannot be float type. Could you fix this bug?