File tree 4 files changed +2
-3
lines changed
4 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,5 @@ src/autogen-methods.jl
57
57
csrc /build /
58
58
csrc /libtorch /
59
59
deps /lib /
60
+ deps /logs /
60
61
deps /build.log
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ A Julia interface for PyTorch's C++ backend.
14
14
``` julia
15
15
julia> using ThArrays
16
16
17
- julia> handle_error_in_julia () # don't crash when error in libtorch
18
-
19
17
julia> t = Tensor ( - rand (3 , 3 ) )
20
18
PyTorch. Tensor{Float64, 2 }:
21
19
- 0.1428 - 0.7099 - 0.1446
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const PROJECT_DIR = (@__DIR__) |> dirname
11
11
function __init__ ()
12
12
push! (Libdl. DL_LOAD_PATH, joinpath (PROJECT_DIR, " deps/lib" ))
13
13
Libdl. dlopen (joinpath (PROJECT_DIR, " deps/lib/libtorch_capi" ))
14
+ @async handle_error_in_julia ()
14
15
end
15
16
16
17
function handle_error_in_julia ()
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ using Test
4
4
@testset " Issues Regression" begin
5
5
6
6
@testset " Issue 4" begin
7
- handle_error_in_julia ()
8
7
Test. @test_throws ErrorException Tensor (3 , requires_grad= true )
9
8
end
10
9
You can’t perform that action at this time.
0 commit comments