Comments (3)
@ailzhang Is this TPU or CPU?
from xla.
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.
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)
- Distributed spmd training with multiple compilations HOT 4
- RuntimeError: isDifferentiableType(variable.scalar_type()) INTERNAL ASSERT FAILED when using torch.repeat HOT 2
- In-place operations on an DLPack aliased XLA tensor does not propagate. HOT 8
- [RFC] PR Cherrypicking Process After a Release Branch Cut HOT 1
- Incomplete Checkpoints for Non-Sharded Parameters During SPMD Training in PyTorch XLA HOT 4
- Delete main branch HOT 4
- TPU Initialization Failed HOT 3
- How to convert hlo.pb to hlo text? HOT 3
- The combination of inplace ops and custom op resulted in incorrect results HOT 3
- 2.4 backport PR request list HOT 15
- [torchbench] `drq` training fails to run on non-dynamo. HOT 2
- [RFC] PyTorch/XLA eager mode as default HOT 3
- [RFC] torch_xla2 dynamo integration HOT 5
- Error: Check Failed: `it != inputs_.end()` When Using `torch` and `torch_xla` Nightly Version (Post-20240527) with SPMD HOT 4
- xla gpu train ResizeBicubic is not supported HOT 4
- SPMD on TPU Pod with Multiple Machines and Randomness/Seed HOT 6
- Sharing tensor storage (with DLPack) results in unexpected behavior. HOT 3
- grid sampler op need to register fp32 autocast HOT 4
- dear teachers, i can connect the internet, but i can not download it the torch_xla HOT 16
- Support non-traceable Custom Ops with opaque arguments HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xla.