Skip to content

DiffTensor/PrimalTensor sample() not yet implemented #939

@jhelferty-nv

Description

@jhelferty-nv

Summary

DiffTensor<float, 2> and PrimalTensor<float, 2> sample operations are not yet implemented. Tests for these (test_difftensor_sample_scalar, test_primaltensor_sample_scalar) are currently skipped.

Affected tests

In slangpy/tests/slangpy_tests/test_tensor.py:

  • test_difftensor_sample_scalar — bilinear sampling on DiffTensor<float, 2>
  • test_primaltensor_sample_scalar — bilinear sampling on PrimalTensor<float, 2>

Note: Tensor<float, 2> and RWTensor<float, 2> sample operations work correctly.

Expected behavior

Sample operations on DiffTensor and PrimalTensor should work the same as on Tensor/RWTensor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions