-
```julia
julia> function train()
@showprogress for d in 1:10
gs = Zygote.gradient(1.0) do x
return sin(x)
end
end
end
train (generic function with 1 m…
-
Hi, I've been using UNet-like architecture that accepts different encoders.
And when passing EfficientNet as an encoder (that contains BatchNorm in the MBConv blocks), it crashes during the gradient …
-
v1 is the standard basis vector
```
julia> Zygote.gradient(v->0v, v1)
ERROR: cannot convert from ⟨×××⟩ to ⟨+++---⟩*
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] (::SubMan…
-
Hi,
I am encountering error when compiling a problem and I would like to know, if this is something trivial to fix or a lack of some feature. Compiler is a bit opaque for me to fix this.
```juli…
-
For a fairly simple minimal working example shown below, I see a considerably large delay between the HtoD memcopy and the kernel launch.
The times reported by Nsight systems are:
1. HtoD memcopy: ~…
-
MWE
```julia
julia> using Zygote
julia> function f(x)
@info x
2 * x
end
f (generic function with 1 method)
julia> f'(1.0)
[ Info: 1.0
ERROR: Compiling Tuple{typeof…
-
```julia
julia> using FillArrays, InfiniteArrays
julia> @descend Matrix(Zeros(∞,∞))
ERROR: KeyError: key :S not found
Stacktrace:
[1] getindex
@ ./dict.jl:484 [inlined]
[2] map_ssas_t…
-
`invoke` is an interesting built-in function. I came across a use of it when debugging a PR linked to #197 .
# `invoke` recap
Recall that invoke behaves as follows:
```julia
julia> foo(x) = 5x…
-
I supposed that the CNOT gate should be available without including `qelib1.inc`. But I still got an error when using `@code_qasm`, even if I include `qelib1.inc`.
```julia
julia> using YaoCompil…
-
> I did implement the things mentioned above but when applied to a toy workflow inspired from the doc, it is currently not working. I am unclear on what the error message means. The cause could be wha…