Skip to content

Tensor size limits are too strict for Gemm #1236

@aobolensk

Description

@aobolensk

Starting with v.52.6.0 (commit d4207ce, to be more precise) whisper encoder network started to fail in OpenVINO on ARM CPU.

Limits that we have faced with are in gemm implementation.

func: validate in src/cpu/operators/internal/CpuGemmAssemblyDispatch.cpp:1087
tensor_info->total_size(): 2304000000
total_size: 2304000000
tensor_shape(): [1500, 1500, 1, 512]
tensor_shape().total_size(): 1152000000
element_size: 2
num_channels: 1
max_size_in_bytes: 2147483647

So total size in our tensor (2304000000) exceeds max allowed one (2147483647 == 2^31 -1)

Could you please consider relaxing these limits or provide some alternatives for us to mitigate this limitation?

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions