Skip to content

Commit

Permalink
small updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuernber committed Dec 5, 2019
1 parent 3286631 commit 66ef14a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/project.clj
Expand Up @@ -4,4 +4,4 @@
:license {:name "EPL-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.1"]
[cnuernber/libpython-clj "1.13"]])
[cnuernber/libpython-clj "1.15"]])
2 changes: 1 addition & 1 deletion example/src/keras_simple.clj
Expand Up @@ -84,7 +84,7 @@

(defn eval-model
[model features lables]
(let [model-names (->> (get-attr model "metrics_names")
(let [model-names (->> ($. model metrics_names)
(mapv keyword))]
(->> (a$ model evaluate features labels)
(map vector model-names)
Expand Down
2 changes: 1 addition & 1 deletion src/libpython_clj/python.clj
Expand Up @@ -264,7 +264,7 @@
(when (and ptype pvalue ptraceback
(not suppress-error?))
(do
;;MAnuall incref here because we cannot detach the object
;;Manual incref here because we cannot detach the object
;;from our gc decref hook added during earlier pyerr-fetch handler.
(pyjna/Py_IncRef ptype)
(pyjna/Py_IncRef pvalue)
Expand Down

0 comments on commit 66ef14a

Please sign in to comment.