clj-python / libpython-clj

Python bindings for Clojure
Eclipse Public License 2.0
1.08k stars 68 forks source link

repl closes unexpectedly #113

Closed zendevil closed 4 years ago

zendevil commented 4 years ago

I'm benchmarking this library:


(ns clotorch.nn.core
  (:require [libpython-clj.require :refer [require-python]]
            [libpython-clj.python :refer [py. py.. py.-] :as py]))

(require-python 'torch)

(time
 (dotimes [n 50000]
   (py. torch/nn Linear 5 3)))

It literally stops the repl when the last s-expression is evaluated. Why is the repl crashing?

zendevil commented 4 years ago

Please see #114