Coder Social home page Coder Social logo

Comments (8)

lezcano avatar lezcano commented on June 15, 2024

cc @jgong5

from pytorch.

isuruf avatar isuruf commented on June 15, 2024

The failure seems to come from special casing of bool at

if dtype == torch.bool:
# TODO: should we consider load mask here?
line = f"{self._get_mask_type()}::from({loadbuf})"
else:
line = (
f"{load_mask_str}.template loadu<{cpp_type},{num_vectors}>({loadbuf})"
if load_mask_str
else f"{self._get_vec_type(dtype)}::loadu({loadbuf}, {self.tiling_factor})"
)

Tried fixing this in #126406, but that's not the correct solution.

from pytorch.

isuruf avatar isuruf commented on June 15, 2024

Is there a CI job with PYTORCH_ALL_SAMPLES=1 that runs periodically or is that too costly?

Running

PYTORCH_ALL_SAMPLES=1 python test/inductor/test_torchinductor_opinfo.py -k test_comprehensive_constant_pad_nd_cpu_bool -vv

gives us a test case that fails.

from pytorch.

peterbell10 avatar peterbell10 commented on June 15, 2024

or is that too costly?

I think it's too broken. Trying to enable all samples testing on as many operators as possible could be a worthwhile project though.

from pytorch.

leslie-fang-intel avatar leslie-fang-intel commented on June 15, 2024

Will take a look for this failure.

from pytorch.

isuruf avatar isuruf commented on June 15, 2024

A similar failure can be seen with

PYTORCH_ALL_SAMPLES=1 python test/inductor/test_torchinductor_opinfo.py -k test_comprehensive__chunk_cat_cpu_bool

It fails with

Output:
/tmp/tmp7vma6sgm/xo/cxojdq4ofjj257z6cmt43wndg43l3kt7mx2kvr6mwuq6haam22qj.cpp: In function 'void kernel(const bool*, const bool*, const bool*, bool*, bool*, bool*)':
/tmp/tmp7vma6sgm/xo/cxojdq4ofjj257z6cmt43wndg43l3kt7mx2kvr6mwuq6haam22qj.cpp:86:34: error: operands to '?:' have different types 'at::vec::CPU_CAPABILITY::VecMask<float, 1>' and 'at::vec::CPU_CAPABILITY::Vectorized<bool>'
   86 |                 auto tmp6 = tmp3 ? tmp4() : at::vec::Vectorized<bool>(static_cast<bool>(false));
      |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from pytorch.

leslie-fang-intel avatar leslie-fang-intel commented on June 15, 2024

A similar failure can be seen with

PYTORCH_ALL_SAMPLES=1 python test/inductor/test_torchinductor_opinfo.py -k test_comprehensive__chunk_cat_cpu_bool

It fails with

Output:
/tmp/tmp7vma6sgm/xo/cxojdq4ofjj257z6cmt43wndg43l3kt7mx2kvr6mwuq6haam22qj.cpp: In function 'void kernel(const bool*, const bool*, const bool*, bool*, bool*, bool*)':
/tmp/tmp7vma6sgm/xo/cxojdq4ofjj257z6cmt43wndg43l3kt7mx2kvr6mwuq6haam22qj.cpp:86:34: error: operands to '?:' have different types 'at::vec::CPU_CAPABILITY::VecMask<float, 1>' and 'at::vec::CPU_CAPABILITY::Vectorized<bool>'
   86 |                 auto tmp6 = tmp3 ? tmp4() : at::vec::Vectorized<bool>(static_cast<bool>(false));
      |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks for reporting it. Will also fix it in the same PR.

from pytorch.

isuruf avatar isuruf commented on June 15, 2024

Thanks @leslie-fang-intel for the PR. Opened another issue at #126824

from pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.