Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mm_action_prediction/loaders/loader_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _ship_helper(self, numpy_array):
# int32 get mapped to int64 and float to double
if numpy_array.dtype == np.int32 or numpy_array.dtype == np.int64:
new_type = torch.int64
elif numpy_array.dtype == np.bool:
elif numpy_array.dtype == bool:
new_type = torch.bool
else:
new_type = torch.float
Expand Down
2 changes: 1 addition & 1 deletion mm_action_prediction/loaders/loader_simmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def interactive_batch(self, input_str, round_id):
{
"user_utt": enc_in,
"user_utt_len": enc_len,
"dialog_mask": np.ones((1, 1), dtype=np.bool),
"dialog_mask": np.ones((1, 1), dtype=bool),
"round_id": np.array([round_id], dtype="int32"),
}
)
Expand Down