Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Why not add contiguous check for tensor in cuda kernel? #211

Open
@otakuxiang

Description

@otakuxiang

I just implement a InstanceNorm layer in SparseConv and it using permute and unsqueeze function.This will change the stride and make tensor no more contiguous. The convolution after the norm function will give a wrong answer because the stride changes. I see the source code and I find it always assume the input tensor is contiguous because it use stride(0) multiply row id to get the value.
So why not add a contiguous check to make it more robustly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions