[Feature] add support for Qwen3-omni (#55)
Signed-off-by: Rein Yang <ruiruyang2@gmail.com> Co-authored-by: Rein <rein@Reins-MacBook-Air.local>
This commit is contained in:
1 parent
a5800cd2c2
commit
0a4e5a8710
47 files changed
+8064
-478
No files matched your search
@@ -28,3 +28,12 @@ def split_list_into_ranges(lst: torch.Tensor, interval: int) -> list[list[int]]:
|
||||
ranges[index].append(num)
|
||||
|
||||
return ranges
|
||||
|
||||
|
||||
def safe_tensor_reshape(tensor: torch.Tensor, shape: tuple) -> torch.Tensor:
|
||||
"""
|
||||
Reshape a tensor safely.
|
||||
"""
|
||||
if tensor is None:
|
||||
return None
|
||||
return tensor.reshape(shape)
|
||||
Reference in new issue
Block a user