Skip to content

Commit 33e7260

Browse files
igorsugakfacebook-github-bot
authored andcommitted
s,np.bool\b,bool,
Summary: X-link: facebookresearch/Generic-Grouping#16 X-link: facebookresearch/Detectron#1047 X-link: https://github.com/facebookincubator/zstrong/pull/582 `np.bool` and `bool` are identical, but the former is removed from Numpy-1.24.X. Differential Revision: D49196618
1 parent bec604b commit 33e7260

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mm_action_prediction/loaders/loader_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _ship_helper(self, numpy_array):
104104
# int32 get mapped to int64 and float to double
105105
if numpy_array.dtype == np.int32 or numpy_array.dtype == np.int64:
106106
new_type = torch.int64
107-
elif numpy_array.dtype == np.bool:
107+
elif numpy_array.dtype == bool:
108108
new_type = torch.bool
109109
else:
110110
new_type = torch.float

mm_action_prediction/loaders/loader_simmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def interactive_batch(self, input_str, round_id):
461461
{
462462
"user_utt": enc_in,
463463
"user_utt_len": enc_len,
464-
"dialog_mask": np.ones((1, 1), dtype=np.bool),
464+
"dialog_mask": np.ones((1, 1), dtype=bool),
465465
"round_id": np.array([round_id], dtype="int32"),
466466
}
467467
)

0 commit comments

Comments
 (0)