Skip to content

[BUG] <title>AttributeError: 'SparseTensor' object has no attribute 'shape' #2

@williamlzw

Description

@williamlzw

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

print(f"✅ Sparse tensor created: {sparse_tensor.shape}")
AttributeError: 'SparseTensor' object has no attribute 'shape'

sparse_tensor = torchsparse.SparseTensor(coords=coords, feats=feats)
print(f"✅ Sparse tensor created: {sparse_tensor.shape}")

Test 2: Basic operations

print("Test 2: Basic operations...")
dense_shape = sparse_tensor.dense_shape
print(f"✅ Dense shape: {dense_shape}")

Expected Behavior

No response

Environment

- GCC:
- NVCC:
- PyTorch:
- PyTorch CUDA:
- TorchSparse:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions