Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

XRTArray(XRTArray(1)) doesn't work #35

Open
staticfloat opened this issue Feb 20, 2019 · 0 comments
Open

XRTArray(XRTArray(1)) doesn't work #35

staticfloat opened this issue Feb 20, 2019 · 0 comments

Comments

@staticfloat
Copy link
Collaborator

staticfloat commented Feb 20, 2019

Currently it throws the opaque error:

AssertionError: isexpr(cond_stmt, :invoke)

Stacktrace:
 [1] outline_if!(::Core.Compiler.IRCode, ::Core.Compiler.OptimizationState, ::Core.Compiler.DomTree, ::Int64, ::Int64) at /home/sabae/.julia/dev/XLA/src/outlining.jl:468
 [2] outline_control_flow!(::Core.Compiler.IRCode, ::Core.Compiler.OptimizationState) at /home/sabae/.julia/dev/XLA/src/outlining.jl:503
 [3] _compile_to_xla!(::Array{XLA.xla.HloComputationProto,1}, ::XLA.xla.HloComputationProto, ::Core.Compiler.IRCode, ::Core.Compiler.OptimizationState) at /home/sabae/.julia/dev/XLA/src/compiler.jl:57
 [4] #compile_to_xla#220(::Nothing, ::Function, ::Core.Compiler.IRCode, ::Core.Compiler.OptimizationState) at /home/sabae/.julia/dev/XLA/src/compiler.jl:342
 [5] (::getfield(XLA, Symbol("#kw##compile_to_xla")))(::NamedTuple{(:replica_device_coords,),Tuple{Nothing}}, ::typeof(XLA.compile_to_xla), ::Core.Compiler.IRCode, ::Core.Compiler.OptimizationState) at ./none:0
 [6] top-level scope at /home/sabae/.julia/dev/XLA/src/compiler_interface.jl:115
 [7] top-level scope at In[25]:8

This should just return XRTArray(1).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant