GithubHelp home page GithubHelp logo

Pred type causes issues about xla HOT 3 CLOSED

pytorch avatar pytorch commented on August 17, 2024
Pred type causes issues

from xla.

Comments (3)

dlibenzi avatar dlibenzi commented on August 17, 2024

@ailzhang Is this TPU or CPU?

from xla.

dlibenzi avatar dlibenzi commented on August 17, 2024

Must be TPU as this works on CPU:

  def test_pred_type(self):
    xla_device = xm.xla_device()
    a = (torch.rand(4).to(xla_device) >= 0.5)
    b = (torch.rand(4).to(xla_device) >= 0.5)
    c = torch.cat([a, b], dim=0)
    d = c.sum()
    print(c)
    print(d)
tensor([0, 0, 0, 0, 0, 1, 0, 0], dtype=torch.uint8)
tensor(1, dtype=torch.uint8)

from xla.

dlibenzi avatar dlibenzi commented on August 17, 2024

Yep, it is:

RuntimeError: tensorflow/compiler/xla/xla_client/xrt_computation_client.cc:242 : Check failed: mwait.Wait() == ::tensorflow::Status::OK() (Internal: tensorflow/compiler/xla/xla_client/xrt_computation_client.cc:222 : Check failed: session->session()->Run( session_work.feed_inputs, session_work.outputs_handles, &outputs) == ::tensorflow::Status::OK() (Invalid argument: Invalid HLO for TPU: U8 and S8 types are not supported: %x.13 = u8[] parameter(0)
	 [[{{node XRTCompile}}]]
	 [[XRTCompile_G3]] vs. OK)

from xla.

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.