julia 1.10.10shuffle(1:3000)[1:2000]; julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 1692 页 | 6.34 MB | 4 月前3
Julia 1.10.9shuffle(1:3000)[1:2000]; julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 1692 页 | 6.34 MB | 4 月前3
Julia 1.11.4PERFORMANCE TIPS 466 julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia 1.11.5 DocumentationPERFORMANCE TIPS 466 julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia v1.9.4 Documentationshuffle(1:3000)[1:2000]; julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 1644 页 | 5.27 MB | 1 年前3
Julia 1.9.0 DEV Documentationshuffle(1:3000)[1:2000]; julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 1633 页 | 5.23 MB | 1 年前3
Julia 1.9.3 Documentationshuffle(1:3000)[1:2000]; julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 1644 页 | 5.27 MB | 1 年前3
Julia 1.9.0 rc2 Documentationshuffle(1:3000)[1:2000]; julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 1644 页 | 5.27 MB | 1 年前3
Julia 1.10.0 DEV Documentationshuffle(1:3000)[1:2000]; julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 1678 页 | 5.95 MB | 1 年前3
Julia 1.9.2 Documentationshuffle(1:3000)[1:2000]; julia> function iterated_neural_network(A, x, depth) for _ in 1:depth x .= max.(0, A * x) end argmax(x) end julia> @time iterated_neural_network(view(A, inds, inds), x, 10) 0.324903 324903 seconds (12 allocations: 157.562 KiB) 1569 julia> @time iterated_neural_network(A[inds, inds], x, 10) 0.054576 seconds (13 allocations: 30.671 MiB, 13.33% gc time) 1569 Provided there is enough0 码力 | 1644 页 | 5.27 MB | 1 年前3
共 50 条
- 1
- 2
- 3
- 4
- 5













