# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?page=343

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 344

---

## [\`ConvTranspose\` generates \`CUDNN\_STATUS\_BAD\_PARAM (code 3)\`](https://discourse.julialang.org/t/convtranspose-generates-cudnn-status-bad-param-code-3/66908)

<div class="topic-metadata">

**Author:** [@haberdashPI](https://discourse.julialang.org/u/haberdashPI)\
**Replies:** 8\
**Last updated:** [August 25, 2021, 4:02pm UTC](https://discourse.julialang.org/t/convtranspose-generates-cudnn-status-bad-param-code-3/66908 "2021-08-25T16:02:19Z")

</div>

I’m having an issue when creating a 1D ConvTranspose model in Flux, when I run it on the GPU. The following runs using Flux, CUDA x = rand(Float32, 20, 13, 2) model = ConvTranspose((7,), 13 =\> 5, relu; pad=(3,1), stri…

---

## [Graph Insets with Makie](https://discourse.julialang.org/t/graph-insets-with-makie/66855)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 6\
**Last updated:** [August 25, 2021, 3:47pm UTC](https://discourse.julialang.org/t/graph-insets-with-makie/66855 "2021-08-25T15:47:56Z")

</div>

I’m attempting to inset a colorbar into the lower left corner of this graph using the example I found at the link below. https://lazarusa.github.io/BeautifulMakie/ScattersLines/LineWithInset/ f1 = Figure(resolution …

---

## [How to make parameters of function within Flux.Chain trainable?](https://discourse.julialang.org/t/how-to-make-parameters-of-function-within-flux-chain-trainable/66983)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 2\
**Last updated:** [August 25, 2021, 3:36pm UTC](https://discourse.julialang.org/t/how-to-make-parameters-of-function-within-flux-chain-trainable/66983 "2021-08-25T15:36:13Z")

</div>

Hi, I have a NeuralODE defined as follows: dudt = Chain(x -\> Dense(10, 20, tanh)(x\[1\]) + Dense(10, 20, tanh)(x\[2\])) n\_ode = NeuralODE(dudt, (0., 1.), Tsit5(), saveat=range(0., 1., length=100), reltol=1e-7, abstol=1e-9) …

---

## [Flux.Chain vs expand everything in a function](https://discourse.julialang.org/t/flux-chain-vs-expand-everything-in-a-function/66982)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 2:59pm UTC](https://discourse.julialang.org/t/flux-chain-vs-expand-everything-in-a-function/66982 "2021-08-25T14:59:47Z")

</div>

Hi, I was trying to understand what the difference is between Flux.Chain vs expanding all operations in a single function. For instance, given following object: Chain(Dense(d\_in, d\_hidden, tanh), Dense(d\_hidden, d\_hidd…

---

## [How to use multiple inputs in \`NeuralODE\` object?](https://discourse.julialang.org/t/how-to-use-multiple-inputs-in-neuralode-object/66955)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 2\
**Last updated:** [August 25, 2021, 1:43pm UTC](https://discourse.julialang.org/t/how-to-use-multiple-inputs-in-neuralode-object/66955 "2021-08-25T13:43:33Z")

</div>

Hi, I am trying to use multiple inputs in NeuralODE object and wonder what is the best way to do this. Specifically, I have the following object: n\_ode = NeuralODE(dudt, tspan, Tsit5(), saveat=t, reltol=1e-7, abstol=1e…

---

## [Non-linear gradient descent under linear constraints?](https://discourse.julialang.org/t/non-linear-gradient-descent-under-linear-constraints/66965)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 9\
**Last updated:** [August 25, 2021, 1:46pm UTC](https://discourse.julialang.org/t/non-linear-gradient-descent-under-linear-constraints/66965 "2021-08-25T13:46:19Z")

</div>

Hey, Is there a pure julia implementation of a non-linear gradient descent under linear matrix/vector equality and inequality constraints ? My problem is given as : \\min\\limits\_{Ax=b,\\, x\\ge 0}\\, f(x) where f is non-…

---

## [How to annotate with arrows in Julia Plots?](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 7:39pm UTC](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931 "2021-08-24T19:39:55Z")

</div>

Is there a way to achieve annotations similar to matplotlib without switching the backends for Plots? I am especially looking for a way to annotate with arrows. The current method as seen in docs seems to support only te…

---

## [Gradient not zero when optimizing function](https://discourse.julialang.org/t/gradient-not-zero-when-optimizing-function/66972)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 11:34am UTC](https://discourse.julialang.org/t/gradient-not-zero-when-optimizing-function/66972 "2021-08-25T11:34:47Z")

</div>

I am optimizing a function. The algorithm finds a solution, but the gradient at the solution is not close to zero. What can be done in that case? sol3 = optimize(θ -\> -obj(θ), sol1.minimizer, NewtonTrustRegion(), …

---

## [Makie mouse events during drag](https://discourse.julialang.org/t/makie-mouse-events-during-drag/66726)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 13\
**Last updated:** [August 25, 2021, 11:26am UTC](https://discourse.julialang.org/t/makie-mouse-events-during-drag/66726 "2021-08-25T11:26:13Z")

</div>

I am trying to implement a crosshair, which is updated during a mouse click but can also be “dragged”. However, register\_interaction!(ax, :my\_mouse\_interaction) do event::MouseEvent does not seem to yield any MouseEvent…

---

## [Train neural ODE with mini-batch in different initial conditions](https://discourse.julialang.org/t/train-neural-ode-with-mini-batch-in-different-initial-conditions/66854)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 2:53am UTC](https://discourse.julialang.org/t/train-neural-ode-with-mini-batch-in-different-initial-conditions/66854 "2021-08-25T02:53:08Z")

</div>

Hi, I am trying to train a neural ODE with mini-batch in different initial conditions. I found some tutorials regarding mini-batch but they are mostly focusing on batching different time points with the a single initial…

---

## [ERROR: MethodError: no method matching enable\_finalizers()](https://discourse.julialang.org/t/error-methoderror-no-method-matching-enable-finalizers/66928)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 6:42pm UTC](https://discourse.julialang.org/t/error-methoderror-no-method-matching-enable-finalizers/66928 "2021-08-24T18:42:04Z")

</div>

I try to use LinearAlgebra.LAPACK.potrf!('U', A) and get: ERROR: MethodError: no method matching enable\_finalizers() Closest candidates are: enable\_finalizers(::Bool) at gcutils.jl:117 Stacktrace: \[1\] (::CUDA.APIUti…

---

## [Unpacking Matrix Columns as Vector Arguments](https://discourse.julialang.org/t/unpacking-matrix-columns-as-vector-arguments/66897)

<div class="topic-metadata">

**Author:** [@danphenderson](https://discourse.julialang.org/u/danphenderson)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 5:45pm UTC](https://discourse.julialang.org/t/unpacking-matrix-columns-as-vector-arguments/66897 "2021-08-24T17:45:04Z")

</div>

I am trying to unpack the columns of a matrix S into the ForwardDiff.Dual{T} constructor. I have tried numerous different approaches without success. Specifically, I want a function that does the following: function gA…

---

## [neuralODE not using multiple CPUs](https://discourse.julialang.org/t/neuralode-not-using-multiple-cpus/66873)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 2:22pm UTC](https://discourse.julialang.org/t/neuralode-not-using-multiple-cpus/66873 "2021-08-24T14:22:40Z")

</div>

Hi, I am trying to run neuralODE with multiple CPUs, but I found that when I set export JULIA\_NUM\_THREADS=10, and Threads.nthreads() outputs 10, the neuralODE model is still using only 1 CPU. I am wondering if anyone ha…

---

## [Makie Ticks - hide tick but keep label](https://discourse.julialang.org/t/makie-ticks-hide-tick-but-keep-label/66875)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 1:59pm UTC](https://discourse.julialang.org/t/makie-ticks-hide-tick-but-keep-label/66875 "2021-08-24T13:59:06Z")

</div>

Is there anyway to hide the small tick mark but keep the tick label - I’m having a terrible time navigating the current documentation. Love Makie so far - just can’t find things in the documentation. I have this: An…

---

## [JuMP error constraint forming KeyError:](https://discourse.julialang.org/t/jump-error-constraint-forming-keyerror/66905)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 1:18pm UTC](https://discourse.julialang.org/t/jump-error-constraint-forming-keyerror/66905 "2021-08-24T13:18:26Z")

</div>

Hi, I wanted to implement the attached constraint with below code but getting error const Gurobix = optimizer\_with\_attributes(Gurobi.Optimizer,"MIPGap"=\>0.0005) #"TimeLimit"=\>1000 mod2 = Model(Gurobix) Lf\_p= \[18 17 3…

---

## [Manage output report from optimization](https://discourse.julialang.org/t/manage-output-report-from-optimization/66881)

<div class="topic-metadata">

**Author:** [@Daniel\_Villamar](https://discourse.julialang.org/u/Daniel_Villamar)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 1:13pm UTC](https://discourse.julialang.org/t/manage-output-report-from-optimization/66881 "2021-08-24T13:13:16Z")

</div>

I am using Jump to solve an optimisation. The solving process stops because it does not find a feasible solution. I am in the early stages of debugging my program. I use the println(model) function to display the variab…

---

## [EnsembleDistributed Progress bar](https://discourse.julialang.org/t/ensembledistributed-progress-bar/66825)

<div class="topic-metadata">

**Author:** [@ograsdijk](https://discourse.julialang.org/u/ograsdijk)\
**Replies:** 4\
**Last updated:** [August 24, 2021, 10:25am UTC](https://discourse.julialang.org/t/ensembledistributed-progress-bar/66825 "2021-08-24T10:25:56Z")

</div>

I’m running several thousand ODE simulations that take ~30s each, and I’d like to be able to track the progress. I haven’t found any method for including a progress bar within EnsembleDistributed(), without resorting to …

---

## [Xticklabelalign AoG](https://discourse.julialang.org/t/xticklabelalign-aog/66890)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 9:01am UTC](https://discourse.julialang.org/t/xticklabelalign-aog/66890 "2021-08-24T09:01:04Z")

</div>

How can I get the ticks to be horizontally centered on each of the bars? spec = data((data=rand('a':'g', 1000),),) \* mapping(:data) \* visual(Hist) draw(spec, axis=(xticklabelalign=(:center, :top),),)

---

## [Optimization of a decision vector of arbitrary dimension](https://discourse.julialang.org/t/optimization-of-a-decision-vector-of-arbitrary-dimension/66846)

<div class="topic-metadata">

**Author:** [@etas](https://discourse.julialang.org/u/etas)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 7:31am UTC](https://discourse.julialang.org/t/optimization-of-a-decision-vector-of-arbitrary-dimension/66846 "2021-08-24T07:31:46Z")

</div>

Hi, For an optimization problem having time dependent variables (i.e. large vectors), I’m trying to define the problem like below, with variables constrained by vectors, and optimize one variable. using JuMP using CPLE…

---

## [Dash/Makie web page mouse drawing](https://discourse.julialang.org/t/dash-makie-web-page-mouse-drawing/66591)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 7:15am UTC](https://discourse.julialang.org/t/dash-makie-web-page-mouse-drawing/66591 "2021-08-24T07:15:44Z")

</div>

I need to do some manual line drawings with the mouse on a web page and then process those curves in backend. Does Dash or Makie have such capability?(mouse drawing + ability to be proceased and served)

---

## [AoG yaxislabel](https://discourse.julialang.org/t/aog-yaxislabel/66891)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 5:12am UTC](https://discourse.julialang.org/t/aog-yaxislabel/66891 "2021-08-24T05:12:30Z")

</div>

How can I specify the y axis label using makie spec = data((data=rand('a':'g', 1000),),) \* mapping(:data) \* visual(Hist) draw(spec, axis=(yaxislabel="values",),)

---

## [Computational performance when broadcasting a convolution layer](https://discourse.julialang.org/t/computational-performance-when-broadcasting-a-convolution-layer/66587)

<div class="topic-metadata">

**Author:** [@MattSainsbury-Dale](https://discourse.julialang.org/u/MattSainsbury-Dale)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 1:11am UTC](https://discourse.julialang.org/t/computational-performance-when-broadcasting-a-convolution-layer/66587 "2021-08-24T01:11:45Z")

</div>

For 2D images, the usual input format for Conv layers is Array{Float32, 4}. I’m currently experimenting with broadcasting a Conv layer over a Vector{Array{Float32, 4}}, however I have found the performance to be signific…

---

## [Mosek Error upon using Powermodels.jl](https://discourse.julialang.org/t/mosek-error-upon-using-powermodels-jl/66856)

<div class="topic-metadata">

**Author:** [@aaldik](https://discourse.julialang.org/u/aaldik)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 9:24pm UTC](https://discourse.julialang.org/t/mosek-error-upon-using-powermodels-jl/66856 "2021-08-23T21:24:19Z")

</div>

Hello I’m trying to use the solver Mosek to solve a SDP problem via the “Powermodels.jl” library. My code is very simple: using powermodels using MosekTools solver4 = Mosek.Optimizer; SDP\_relax=run\_opf(“pglib\_opf\_ca…

---

## [Need some help converting JAGS code into Turing Model](https://discourse.julialang.org/t/need-some-help-converting-jags-code-into-turing-model/64173)

<div class="topic-metadata">

**Author:** [@stochastic\_guy](https://discourse.julialang.org/u/stochastic_guy)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 8:14pm UTC](https://discourse.julialang.org/t/need-some-help-converting-jags-code-into-turing-model/64173 "2021-08-23T20:14:12Z")

</div>

I am trying to implement this JAGS model in Turing. JAGS code from: Zhan, P., Jiao, H., Man, K., & Wang, L. (2019). Using JAGS for Bayesian cognitive diagnosis modeling: A tutorial. Journal of Educational and Behav…

---

## [How to handle dataloader consisting of data with different dimensions?](https://discourse.julialang.org/t/how-to-handle-dataloader-consisting-of-data-with-different-dimensions/66847)

<div class="topic-metadata">

**Author:** [@kengyangyao](https://discourse.julialang.org/u/kengyangyao)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 5:50pm UTC](https://discourse.julialang.org/t/how-to-handle-dataloader-consisting-of-data-with-different-dimensions/66847 "2021-08-23T17:50:41Z")

</div>

Hi, I was trying to use Flux.DataLoader with following code: X1 = rand(85761, 8, 24); X2 = rand(85761, 8, 1); y\_1 = rand(85761, 8, 1); emb = rand(85761, 1) train\_loader = Flux.DataLoader((X1=X1, emb=emb, X2=X2, y\_1=y\_1,…

---

## [Pytorch's Identity() implementation/alternative in Fluxml?](https://discourse.julialang.org/t/pytorchs-identity-implementation-alternative-in-fluxml/66810)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 8\
**Last updated:** [August 23, 2021, 4:17pm UTC](https://discourse.julialang.org/t/pytorchs-identity-implementation-alternative-in-fluxml/66810 "2021-08-23T16:17:32Z")

</div>

description: A placeholder identity operator that is argument-insensitive. example pseudocode: self.layer = nn.Sequential( nn.Dropout(0.5) if dropout else nn.Identity(), )

---

## [Flux.jl: params() and gradient() ocnfusion](https://discourse.julialang.org/t/flux-jl-params-and-gradient-ocnfusion/66775)

<div class="topic-metadata">

**Author:** [@Alex-ZA](https://discourse.julialang.org/u/Alex-ZA)\
**Replies:** 4\
**Last updated:** [August 23, 2021, 4:13pm UTC](https://discourse.julialang.org/t/flux-jl-params-and-gradient-ocnfusion/66775 "2021-08-23T16:13:04Z")

</div>

Hello everyone, I apologise if this is not the area to ask Flux questions. If not, please direct to the correct place. I have been going through the Flux.jl documentation and came across this code. julia\> x = \[2, 1\];…

---

## [Quantum clustering algorithm in Julia](https://discourse.julialang.org/t/quantum-clustering-algorithm-in-julia/65061)

<div class="topic-metadata">

**Author:** [@anon28281882](https://discourse.julialang.org/u/anon28281882)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 3:56pm UTC](https://discourse.julialang.org/t/quantum-clustering-algorithm-in-julia/65061 "2021-08-23T15:56:32Z")

</div>

Hi, Is there any example of quantum clustering algorithm written in Julia? Ideally something that is automatically determining number of clusters? This is my first step into quantum computing so I hope the question is …

---

## [Could MathTeXEngine hook up into LaTeX?](https://discourse.julialang.org/t/could-mathtexengine-hook-up-into-latex/66742)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 10\
**Last updated:** [August 23, 2021, 3:15pm UTC](https://discourse.julialang.org/t/could-mathtexengine-hook-up-into-latex/66742 "2021-08-23T15:15:31Z")

</div>

This topic might be quite irritating, so sorry for that in advance. Currently, Makie.jl uses MathTeXEngine.jl to process LaTeX. I have looked at MathTeXEngine.jl, and what I understood is that it returns information abo…

---

## [PyCall error on lsf cluster](https://discourse.julialang.org/t/pycall-error-on-lsf-cluster/66837)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 1:50pm UTC](https://discourse.julialang.org/t/pycall-error-on-lsf-cluster/66837 "2021-08-23T13:50:04Z")

</div>

Dear all, I am having an issue importing a Python package (with PyCall) on the lsf cluster of my university. I want to perform an MCMC analysis using Turing on the Cluster. I have been able to use Turing on my local ma…

[Previous page](https://discourse.julialang.org/c/domain/10.md?page=342)

[Next page](https://discourse.julialang.org/c/domain/10.md?page=344)
