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

no such method => modified function args #16610

Merged
merged 3 commits into from
Oct 30, 2019
Merged

Conversation

phinzphinz
Copy link
Contributor

@phinzphinz phinzphinz commented Oct 24, 2019

ERROR: MethodError: no method matching mapreduce(::getfield(MXNet.mx, Symbol("##8072#8073")), ::typeof(+), ::Float64, ::Array{NDArray{Float32,1},1})

Description

The Julia regression example did not run due to an inappropriate call of the mapreduce function when usen MSE() loss.

Changes

  • Changed the use of the mapreduce function to remove the error

@@ -54,7 +54,7 @@ if Sys.isunix()
nvcc_path = Sys.which("nvcc")
if nvcc_path ≢ nothing
@info "Found nvcc: $nvcc_path"
push!(CUDAPATHS, replace(nvcc_path, "bin/nvcc", "lib64"))
push!(CUDAPATHS, replace(nvcc_path, "bin/nvcc" => "lib64"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I have a PR that fixed the building issues #16125

Copy link
Contributor Author

@phinzphinz phinzphinz Oct 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Then this PR can be ignored.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 ... we still can get this merged into master first.

@iblislin iblislin added the Julia label Oct 25, 2019
julia/src/metric.jl Outdated Show resolved Hide resolved
@@ -54,7 +54,7 @@ if Sys.isunix()
nvcc_path = Sys.which("nvcc")
if nvcc_path ≢ nothing
@info "Found nvcc: $nvcc_path"
push!(CUDAPATHS, replace(nvcc_path, "bin/nvcc", "lib64"))
push!(CUDAPATHS, replace(nvcc_path, "bin/nvcc" => "lib64"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 ... we still can get this merged into master first.

@iblislin
Copy link
Member

I accidentally hit the 'Approve" button 😂

@iblislin
Copy link
Member

The CI faliure is unrelated, but the merge button is locked because of it.
Could you rebase your PR to re-trigger CI?

@phinzphinz
Copy link
Contributor Author

I am no git expert and followed this tutorial. I hope I did everything right.

@iblislin
Copy link
Member

ah, the test failure will be fixed by #16643.
maybe we can wait until that patch got merged.

Here are steps to rebasing:

  1. First, switch to this PR branch.
    then, add this repo as a remote.
git remote add upstream https://github.com/apache/incubator-mxnet.git
  1. And verify it via git remote -v.

  2. Fetch the code git fetch upstream

  3. rebase: git rebase upstream/master

  4. git push -f # force push, since we changed the commit hash.

@phinzphinz
Copy link
Contributor Author

phinzphinz commented Oct 27, 2019

Thanks for the steps. I followed them. Yes, we can wait for the other patch.

@iblislin
Copy link
Member

Okay, that PR (#16643) got merged. Let's try again.

phinzphinz and others added 3 commits October 28, 2019 20:48
ERROR: MethodError: no method matching mapreduce(::getfield(MXNet.mx, Symbol("#apache#8072#8073")), ::typeof(+), ::Float64, ::Array{NDArray{Float32,1},1})
@marcoabreu marcoabreu merged commit 8e50fd9 into apache:master Oct 30, 2019
yajiedesign pushed a commit to yajiedesign/mxnet that referenced this pull request Nov 6, 2019
* no such method => modified function args

ERROR: MethodError: no method matching mapreduce(::getfield(MXNet.mx, Symbol("#apache#8072#8073")), ::typeof(+), ::Float64, ::Array{NDArray{Float32,1},1})

* julia could not build package before

* Update julia/src/metric.jl

Co-Authored-By: Iblis Lin <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants