Package evaluation of OMEinsum on Julia 1.10.8 (92f03a4775*) started at 2025-02-25T08:02:34.243 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Set-up completed after 5.34s ################################################################################ # Installation # Installing OMEinsum... Resolving package versions... Updating `~/.julia/environments/v1.10/Project.toml` [ebe7aa44] + OMEinsum v0.8.4 Updating `~/.julia/environments/v1.10/Manifest.toml` [1520ce14] + AbstractTrees v0.4.5 [66dad0bd] + AliasTables v1.1.3 [ec485272] + ArnoldiMethod v0.4.0 [a9ab73d0] + BatchedRoutines v0.2.2 [50ba71b6] + BitBasis v0.9.6 [d360d2e6] + ChainRulesCore v1.25.1 [861a8166] + Combinatorics v1.0.2 [34da2185] + Compat v4.16.0 [9a962f9c] + DataAPI v1.16.0 [864edb3b] + DataStructures v0.18.20 [ffbed154] + DocStringExtensions v0.9.3 [86223c79] + Graphs v1.12.0 [d25df0c9] + Inflate v0.1.5 [92d709cd] + IrrationalConstants v0.2.4 [682c06a0] + JSON v0.21.4 [2ab3a3ac] + LogExpFunctions v0.3.29 [1914dd2f] + MacroTools v0.5.15 [e1d29d7a] + Missings v1.2.0 [ebe7aa44] + OMEinsum v0.8.4 [6f22d1fd] + OMEinsumContractionOrders v0.9.3 [bac558e1] + OrderedCollections v1.8.0 [69de0a69] + Parsers v2.8.1 [aea7be01] + PrecompileTools v1.2.1 [21216c6a] + Preferences v1.4.3 [43287f4e] + PtrArrays v1.3.0 [699a6c99] + SimpleTraits v0.9.4 [a2af1166] + SortingAlgorithms v1.2.1 [90137ffa] + StaticArrays v1.9.12 [1e83bf80] + StaticArraysCore v1.4.3 [82ae8749] + StatsAPI v1.7.0 [2913bbd2] + StatsBase v0.34.4 [fd094767] + Suppressor v0.2.8 [7d267fc5] + TreeWidthSolver v0.3.4 [9d95972d] + TupleTools v1.6.0 [56f22d72] + Artifacts [2a0f44e3] + Base64 [ade2ca70] + Dates [8ba89e20] + Distributed [b77e0a4c] + InteractiveUtils [76f85450] + LibGit2 [8f399da3] + Libdl [37e2e46d] + LinearAlgebra [56ddb016] + Logging [d6f4376e] + Markdown [a63ad114] + Mmap [ca575930] + NetworkOptions v1.2.0 [de0858da] + Printf [9a3f8284] + Random [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization [1a1011a3] + SharedArrays [6462fe0b] + Sockets [2f01184e] + SparseArrays v1.10.0 [10745b16] + Statistics v1.10.0 [fa267f1f] + TOML v1.0.3 [8dfed614] + Test [cf7118a7] + UUIDs [4ec0a83e] + Unicode [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0 [e37daf67] + LibGit2_jll v1.6.4+0 [29816b5a] + LibSSH2_jll v1.11.0+1 [c8ffd9c3] + MbedTLS_jll v2.28.2+1 [4536629a] + OpenBLAS_jll v0.3.23+4 [bea87d4a] + SuiteSparse_jll v7.2.1+1 [8e850b90] + libblastrampoline_jll v5.11.0+0 Installation completed after 6.09s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompilation completed after 223.87s ################################################################################ # Testing # Testing OMEinsum Status `/tmp/jl_bVy8ET/Project.toml` [1520ce14] AbstractTrees v0.4.5 [a9ab73d0] BatchedRoutines v0.2.2 [052768ef] CUDA v5.6.1 [d360d2e6] ChainRulesCore v1.25.1 [861a8166] Combinatorics v1.0.2 [e30172f5] Documenter v1.8.1 [497a8b3b] DoubleFloats v1.4.2 [f6369f11] ForwardDiff v0.10.38 [1f49bdf2] LuxorGraphPlot v0.5.1 [1914dd2f] MacroTools v0.5.15 [ebe7aa44] OMEinsum v0.8.4 [6f22d1fd] OMEinsumContractionOrders v0.9.3 [f27b6e38] Polynomials v4.0.17 [92933f4c] ProgressMeter v1.10.2 [123dc426] SymEngine v0.12.0 [b3a74e9c] TropicalNumbers v0.6.2 [9d95972d] TupleTools v1.6.0 [e88e6eb3] Zygote v0.7.4 [37e2e46d] LinearAlgebra [9a3f8284] Random [8dfed614] Test Status `/tmp/jl_bVy8ET/Manifest.toml` [a4c015fc] ANSIColoredPrinters v0.0.1 [621f4979] AbstractFFTs v1.5.0 [1520ce14] AbstractTrees v0.4.5 [79e6a3ab] Adapt v4.2.0 [66dad0bd] AliasTables v1.1.3 [ec485272] ArnoldiMethod v0.4.0 [a9b6321e] Atomix v1.1.0 [ab4f0b2a] BFloat16s v0.5.0 [a9ab73d0] BatchedRoutines v0.2.2 [50ba71b6] BitBasis v0.9.6 [fa961155] CEnum v0.5.0 [052768ef] CUDA v5.6.1 [1af6417a] CUDA_Runtime_Discovery v0.3.5 [159f3aea] Cairo v1.1.1 [082447d4] ChainRules v1.72.2 [d360d2e6] ChainRulesCore v1.25.1 [944b1d66] CodecZlib v0.7.8 [3da002f7] ColorTypes v0.12.0 [5ae59095] Colors v0.13.0 [861a8166] Combinatorics v1.0.2 [bbf7d656] CommonSubexpressions v0.3.1 [34da2185] Compat v4.16.0 [187b0558] ConstructionBase v1.5.8 [a8cc5b0e] Crayons v4.1.1 [9a962f9c] DataAPI v1.16.0 [a93c6f00] DataFrames v1.7.0 [864edb3b] DataStructures v0.18.20 [e2d170a0] DataValueInterfaces v1.0.0 [163ba53b] DiffResults v1.1.0 [b552c78f] DiffRules v1.15.1 [ffbed154] DocStringExtensions v0.9.3 [e30172f5] Documenter v1.8.1 [497a8b3b] DoubleFloats v1.4.2 [e2ba6199] ExprTools v0.1.10 [c87230d0] FFMPEG v0.4.2 [5789e2e9] FileIO v1.16.6 [1a297f60] FillArrays v1.13.0 [53c48c17] FixedPointNumbers v0.8.5 [f6369f11] ForwardDiff v0.10.38 [0c68f7d7] GPUArrays v11.2.2 [46192b85] GPUArraysCore v0.2.0 [61eb1bfa] GPUCompiler v1.2.0 [14197337] GenericLinearAlgebra v0.3.15 [d7ba0133] Git v1.3.1 [a2bd30eb] Graphics v1.1.3 [86223c79] Graphs v1.12.0 [076d061b] HashArrayMappedTries v0.2.0 [b5f81e59] IOCapture v0.2.5 [7869d1d1] IRTools v0.4.14 [d25df0c9] Inflate v0.1.5 [842dd82b] InlineStrings v1.4.3 [41ab1584] InvertedIndices v1.3.1 [92d709cd] IrrationalConstants v0.2.4 [82899510] IteratorInterfaceExtensions v1.0.0 [692b3bcd] JLLWrappers v1.7.0 [682c06a0] JSON v0.21.4 [63c18a36] KernelAbstractions v0.9.34 [929cbde3] LLVM v9.2.0 [8b046642] LLVMLoopInfo v1.0.0 [b964fa9f] LaTeXStrings v1.4.0 [0e77f7df] LazilyInitializedFields v1.3.0 [2ab3a3ac] LogExpFunctions v0.3.29 [ae8d54c2] Luxor v4.2.0 [1f49bdf2] LuxorGraphPlot v0.5.1 [d8e11817] MLStyle v0.4.17 [1914dd2f] MacroTools v0.5.15 [d0879d2d] MarkdownAST v0.1.2 [e1d29d7a] Missings v1.2.0 ⌅ [5da4648a] NVTX v0.3.5 [77ba4419] NaNMath v1.1.2 [ebe7aa44] OMEinsum v0.8.4 [6f22d1fd] OMEinsumContractionOrders v0.9.3 [bac558e1] OrderedCollections v1.8.0 [69de0a69] Parsers v2.8.1 [32a0d02f] PolygonAlgorithms v0.3.2 [f27b6e38] Polynomials v4.0.17 [2dfb63ee] PooledArrays v1.4.3 [aea7be01] PrecompileTools v1.2.1 [21216c6a] Preferences v1.4.3 [08abe8d2] PrettyTables v2.4.0 [92933f4c] ProgressMeter v1.10.2 [43287f4e] PtrArrays v1.3.0 [be4d8f0f] Quadmath v0.5.11 [74087812] Random123 v1.7.0 [e6cf234a] RandomNumbers v1.6.0 [c1ae055f] RealDot v0.1.0 [3cdcf5f2] RecipesBase v1.3.4 [189a3867] Reexport v1.2.2 [2792f1a3] RegistryInstances v0.1.0 [ae029012] Requires v1.3.0 [c4c386cf] Rsvg v1.0.0 [7e506255] ScopedValues v1.3.0 [6c6a2e73] Scratch v1.2.1 [91c51154] SentinelArrays v1.4.8 [efcf1570] Setfield v1.1.1 [699a6c99] SimpleTraits v0.9.4 [a2af1166] SortingAlgorithms v1.2.1 [dc90abb0] SparseInverseSubset v0.1.2 [276daf66] SpecialFunctions v2.5.0 [90137ffa] StaticArrays v1.9.12 [1e83bf80] StaticArraysCore v1.4.3 [82ae8749] StatsAPI v1.7.0 [2913bbd2] StatsBase v0.34.4 [892a3eda] StringManipulation v0.4.1 [09ab397b] StructArrays v0.7.0 [fd094767] Suppressor v0.2.8 [123dc426] SymEngine v0.12.0 [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.12.0 [a759f4b9] TimerOutputs v0.5.27 [3bb67fe8] TranscodingStreams v0.11.3 [7d267fc5] TreeWidthSolver v0.3.4 [b3a74e9c] TropicalNumbers v0.6.2 [9d95972d] TupleTools v1.6.0 [013be700] UnsafeAtomics v0.3.0 [e88e6eb3] Zygote v0.7.4 [700de1a5] ZygoteRules v0.2.7 [6e34b625] Bzip2_jll v1.0.9+0 ⌅ [4ee394cb] CUDA_Driver_jll v0.10.4+0 ⌅ [76a88914] CUDA_Runtime_jll v0.15.5+0 [83423d85] Cairo_jll v1.18.2+1 [2e619515] Expat_jll v2.6.5+0 ⌅ [b22a6f82] FFMPEG_jll v4.4.4+1 [a3f928ae] Fontconfig_jll v2.15.0+0 [d7e528f0] FreeType2_jll v2.13.3+1 [559328eb] FriBidi_jll v1.0.16+0 [78b55507] Gettext_jll v0.21.0+0 [f8c6e375] Git_jll v2.47.1+0 [7746bdde] Glib_jll v2.82.4+0 [3b182d85] Graphite2_jll v1.3.14+1 [2e76f6c2] HarfBuzz_jll v8.5.0+0 [aacddb02] JpegTurbo_jll v3.1.1+0 [9c1d0b0a] JuliaNVTXCallbacks_jll v0.2.1+0 [c1c5ebd0] LAME_jll v3.100.2+0 [88015f11] LERC_jll v4.0.1+0 [dad2f222] LLVMExtra_jll v0.0.35+0 [1d63c593] LLVMOpenMP_jll v18.1.7+0 [dd4b983a] LZO_jll v2.10.3+0 ⌅ [e9f186c6] Libffi_jll v3.2.2+2 [d4300ac3] Libgcrypt_jll v1.11.0+0 [7add5ba3] Libgpg_error_jll v1.51.1+0 [94ce4f54] Libiconv_jll v1.18.0+0 [4b2f31a3] Libmount_jll v2.40.3+0 [925c91fb] Librsvg_jll v2.54.5+0 [89763e89] Libtiff_jll v4.7.1+0 [38a345b3] Libuuid_jll v2.40.3+0 [2ce0c516] MPC_jll v1.3.1+0 [e98f9f5b] NVTX_jll v3.1.1+0 [e7412a2a] Ogg_jll v1.3.5+1 [458c3c95] OpenSSL_jll v3.0.16+0 [efe28fd5] OpenSpecFun_jll v0.5.6+0 [91d4177d] Opus_jll v1.3.3+0 [36c8627f] Pango_jll v1.56.1+0 ⌅ [30392449] Pixman_jll v0.43.4+0 [3428059b] SymEngine_jll v0.12.0+0 [02c8fc9c] XML2_jll v2.13.6+1 [aed1982a] XSLT_jll v1.1.42+0 [ffd25f8a] XZ_jll v5.6.4+1 [4f6342f7] Xorg_libX11_jll v1.8.6+3 [0c0b7dd1] Xorg_libXau_jll v1.0.12+0 [a3789734] Xorg_libXdmcp_jll v1.1.5+0 [1082639a] Xorg_libXext_jll v1.3.6+3 [ea2f1a96] Xorg_libXrender_jll v0.9.11+1 [14d82f49] Xorg_libpthread_stubs_jll v0.1.2+0 [c7cfdc94] Xorg_libxcb_jll v1.17.0+3 [c5fb5394] Xorg_xtrans_jll v1.5.1+0 [3161d3a3] Zstd_jll v1.5.7+1 [1e29f10c] demumble_jll v1.3.0+0 [da03df04] gdk_pixbuf_jll v2.42.12+0 [a4ae2306] libaom_jll v3.11.0+0 [0ac62f75] libass_jll v0.15.2+0 [f638f0a6] libfdk_aac_jll v2.0.3+0 [b53b4c65] libpng_jll v1.6.46+0 [f27f6e37] libvorbis_jll v1.3.7+2 ⌅ [1270edf5] x264_jll v2021.5.5+0 ⌅ [dfaa095f] x265_jll v3.5.0+0 [0dad84c5] ArgTools v1.1.1 [56f22d72] Artifacts [2a0f44e3] Base64 [ade2ca70] Dates [8ba89e20] Distributed [f43a241f] Downloads v1.6.0 [7b1f6079] FileWatching [9fa8497b] Future [b77e0a4c] InteractiveUtils [4af54fe1] LazyArtifacts [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 [8f399da3] Libdl [37e2e46d] LinearAlgebra [56ddb016] Logging [d6f4376e] Markdown [a63ad114] Mmap [ca575930] NetworkOptions v1.2.0 [44cfe95a] Pkg v1.10.0 [de0858da] Printf [3fa0cd96] REPL [9a3f8284] Random [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization [1a1011a3] SharedArrays [6462fe0b] Sockets [2f01184e] SparseArrays v1.10.0 [10745b16] Statistics v1.10.0 [4607b0f0] SuiteSparse [fa267f1f] TOML v1.0.3 [a4e569a6] Tar v1.10.0 [8dfed614] Test [cf7118a7] UUIDs [4ec0a83e] Unicode [e66e0078] CompilerSupportLibraries_jll v1.1.1+0 [781609d7] GMP_jll v6.2.1+6 [deac9b47] LibCURL_jll v8.4.0+0 [e37daf67] LibGit2_jll v1.6.4+0 [29816b5a] LibSSH2_jll v1.11.0+1 [3a97d323] MPFR_jll v4.2.0+1 [c8ffd9c3] MbedTLS_jll v2.28.2+1 [14a3606d] MozillaCACerts_jll v2023.1.10 [4536629a] OpenBLAS_jll v0.3.23+4 [05823500] OpenLibm_jll v0.8.1+4 [efcefdf7] PCRE2_jll v10.42.0+1 [bea87d4a] SuiteSparse_jll v7.2.1+1 [83775a58] Zlib_jll v1.2.13+1 [8e850b90] libblastrampoline_jll v5.11.0+0 [8e850ede] nghttp2_jll v1.52.0+1 [3f19e933] p7zip_jll v17.4.0+2 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. Testing Running tests... Test Summary: | Pass Total Time Core | 36 36 7.3s Test Summary: | Pass Total Time match rule | 61 61 2.5s Test Summary: | Pass Total Time unary rules | 13 13 48.4s [ Info: ((), (), (), true) [ Info: ((), (), ('i',), true) [ Info: ((), (), ('k',), true) [ Info: ((), (), ('i', 'k'), true) [ Info: ((), (), ('k', 'i'), true) [ Info: ((), ('k',), (), true) [ Info: ((), ('k',), ('i',), true) [ Info: ((), ('k',), ('k',), true) [ Info: ((), ('k',), ('i', 'k'), true) [ Info: ((), ('k',), ('k', 'i'), true) [ Info: ((), ('j',), (), true) [ Info: ((), ('j',), ('i',), true) [ Info: ((), ('j',), ('k',), true) [ Info: ((), ('j',), ('i', 'k'), true) [ Info: ((), ('j',), ('k', 'i'), true) [ Info: ((), ('k', 'j'), (), true) [ Info: ((), ('k', 'j'), ('i',), true) [ Info: ((), ('k', 'j'), ('k',), true) [ Info: ((), ('k', 'j'), ('i', 'k'), true) [ Info: ((), ('k', 'j'), ('k', 'i'), true) [ Info: ((), ('j', 'k'), (), true) [ Info: ((), ('j', 'k'), ('i',), true) [ Info: ((), ('j', 'k'), ('k',), true) [ Info: ((), ('j', 'k'), ('i', 'k'), true) [ Info: ((), ('j', 'k'), ('k', 'i'), true) [ Info: (('i',), (), (), true) [ Info: (('i',), (), ('i',), true) [ Info: (('i',), (), ('k',), true) [ Info: (('i',), (), ('i', 'k'), true) [ Info: (('i',), (), ('k', 'i'), true) [ Info: (('i',), ('k',), (), true) [ Info: (('i',), ('k',), ('i',), true) [ Info: (('i',), ('k',), ('k',), true) [ Info: (('i',), ('k',), ('i', 'k'), true) [ Info: (('i',), ('k',), ('k', 'i'), true) [ Info: (('i',), ('j',), (), true) [ Info: (('i',), ('j',), ('i',), true) [ Info: (('i',), ('j',), ('k',), true) [ Info: (('i',), ('j',), ('i', 'k'), true) [ Info: (('i',), ('j',), ('k', 'i'), true) [ Info: (('i',), ('k', 'j'), (), true) [ Info: (('i',), ('k', 'j'), ('i',), true) [ Info: (('i',), ('k', 'j'), ('k',), true) [ Info: (('i',), ('k', 'j'), ('i', 'k'), true) [ Info: (('i',), ('k', 'j'), ('k', 'i'), true) [ Info: (('i',), ('j', 'k'), (), true) [ Info: (('i',), ('j', 'k'), ('i',), true) [ Info: (('i',), ('j', 'k'), ('k',), true) [ Info: (('i',), ('j', 'k'), ('i', 'k'), true) [ Info: (('i',), ('j', 'k'), ('k', 'i'), true) [ Info: (('j',), (), (), true) [ Info: (('j',), (), ('i',), true) [ Info: (('j',), (), ('k',), true) [ Info: (('j',), (), ('i', 'k'), true) [ Info: (('j',), (), ('k', 'i'), true) [ Info: (('j',), ('k',), (), true) [ Info: (('j',), ('k',), ('i',), true) [ Info: (('j',), ('k',), ('k',), true) [ Info: (('j',), ('k',), ('i', 'k'), true) [ Info: (('j',), ('k',), ('k', 'i'), true) [ Info: (('j',), ('j',), (), true) [ Info: (('j',), ('j',), ('i',), true) [ Info: (('j',), ('j',), ('k',), true) [ Info: (('j',), ('j',), ('i', 'k'), true) [ Info: (('j',), ('j',), ('k', 'i'), true) [ Info: (('j',), ('k', 'j'), (), true) [ Info: (('j',), ('k', 'j'), ('i',), true) [ Info: (('j',), ('k', 'j'), ('k',), true) [ Info: (('j',), ('k', 'j'), ('i', 'k'), true) [ Info: (('j',), ('k', 'j'), ('k', 'i'), true) [ Info: (('j',), ('j', 'k'), (), true) [ Info: (('j',), ('j', 'k'), ('i',), true) [ Info: (('j',), ('j', 'k'), ('k',), true) [ Info: (('j',), ('j', 'k'), ('i', 'k'), true) [ Info: (('j',), ('j', 'k'), ('k', 'i'), true) [ Info: (('i', 'j'), (), (), true) [ Info: (('i', 'j'), (), ('i',), true) [ Info: (('i', 'j'), (), ('k',), true) [ Info: (('i', 'j'), (), ('i', 'k'), true) [ Info: (('i', 'j'), (), ('k', 'i'), true) [ Info: (('i', 'j'), ('k',), (), true) [ Info: (('i', 'j'), ('k',), ('i',), true) [ Info: (('i', 'j'), ('k',), ('k',), true) [ Info: (('i', 'j'), ('k',), ('i', 'k'), true) [ Info: (('i', 'j'), ('k',), ('k', 'i'), true) [ Info: (('i', 'j'), ('j',), (), true) [ Info: (('i', 'j'), ('j',), ('i',), true) [ Info: (('i', 'j'), ('j',), ('k',), true) [ Info: (('i', 'j'), ('j',), ('i', 'k'), true) [ Info: (('i', 'j'), ('j',), ('k', 'i'), true) [ Info: (('i', 'j'), ('k', 'j'), (), true) [ Info: (('i', 'j'), ('k', 'j'), ('i',), true) [ Info: (('i', 'j'), ('k', 'j'), ('k',), true) [ Info: (('i', 'j'), ('k', 'j'), ('i', 'k'), true) [ Info: (('i', 'j'), ('k', 'j'), ('k', 'i'), true) [ Info: (('i', 'j'), ('j', 'k'), (), true) [ Info: (('i', 'j'), ('j', 'k'), ('i',), true) [ Info: (('i', 'j'), ('j', 'k'), ('k',), true) [ Info: (('i', 'j'), ('j', 'k'), ('i', 'k'), true) [ Info: (('i', 'j'), ('j', 'k'), ('k', 'i'), true) [ Info: (('j', 'i'), (), (), true) [ Info: (('j', 'i'), (), ('i',), true) [ Info: (('j', 'i'), (), ('k',), true) [ Info: (('j', 'i'), (), ('i', 'k'), true) [ Info: (('j', 'i'), (), ('k', 'i'), true) [ Info: (('j', 'i'), ('k',), (), true) [ Info: (('j', 'i'), ('k',), ('i',), true) [ Info: (('j', 'i'), ('k',), ('k',), true) [ Info: (('j', 'i'), ('k',), ('i', 'k'), true) [ Info: (('j', 'i'), ('k',), ('k', 'i'), true) [ Info: (('j', 'i'), ('j',), (), true) [ Info: (('j', 'i'), ('j',), ('i',), true) [ Info: (('j', 'i'), ('j',), ('k',), true) [ Info: (('j', 'i'), ('j',), ('i', 'k'), true) [ Info: (('j', 'i'), ('j',), ('k', 'i'), true) [ Info: (('j', 'i'), ('k', 'j'), (), true) [ Info: (('j', 'i'), ('k', 'j'), ('i',), true) [ Info: (('j', 'i'), ('k', 'j'), ('k',), true) [ Info: (('j', 'i'), ('k', 'j'), ('i', 'k'), true) [ Info: (('j', 'i'), ('k', 'j'), ('k', 'i'), true) [ Info: (('j', 'i'), ('j', 'k'), (), true) [ Info: (('j', 'i'), ('j', 'k'), ('i',), true) [ Info: (('j', 'i'), ('j', 'k'), ('k',), true) [ Info: (('j', 'i'), ('j', 'k'), ('i', 'k'), true) [ Info: (('j', 'i'), ('j', 'k'), ('k', 'i'), true) [ Info: ((), (), (), false) [ Info: ((), (), ('i',), false) [ Info: ((), (), ('k',), false) [ Info: ((), (), ('i', 'k'), false) [ Info: ((), (), ('k', 'i'), false) [ Info: ((), ('k',), (), false) [ Info: ((), ('k',), ('i',), false) [ Info: ((), ('k',), ('k',), false) [ Info: ((), ('k',), ('i', 'k'), false) [ Info: ((), ('k',), ('k', 'i'), false) [ Info: ((), ('j',), (), false) [ Info: ((), ('j',), ('i',), false) [ Info: ((), ('j',), ('k',), false) [ Info: ((), ('j',), ('i', 'k'), false) [ Info: ((), ('j',), ('k', 'i'), false) [ Info: ((), ('k', 'j'), (), false) [ Info: ((), ('k', 'j'), ('i',), false) [ Info: ((), ('k', 'j'), ('k',), false) [ Info: ((), ('k', 'j'), ('i', 'k'), false) [ Info: ((), ('k', 'j'), ('k', 'i'), false) [ Info: ((), ('j', 'k'), (), false) [ Info: ((), ('j', 'k'), ('i',), false) [ Info: ((), ('j', 'k'), ('k',), false) [ Info: ((), ('j', 'k'), ('i', 'k'), false) [ Info: ((), ('j', 'k'), ('k', 'i'), false) [ Info: (('i',), (), (), false) [ Info: (('i',), (), ('i',), false) [ Info: (('i',), (), ('k',), false) [ Info: (('i',), (), ('i', 'k'), false) [ Info: (('i',), (), ('k', 'i'), false) [ Info: (('i',), ('k',), (), false) [ Info: (('i',), ('k',), ('i',), false) [ Info: (('i',), ('k',), ('k',), false) [ Info: (('i',), ('k',), ('i', 'k'), false) [ Info: (('i',), ('k',), ('k', 'i'), false) [ Info: (('i',), ('j',), (), false) [ Info: (('i',), ('j',), ('i',), false) [ Info: (('i',), ('j',), ('k',), false) [ Info: (('i',), ('j',), ('i', 'k'), false) [ Info: (('i',), ('j',), ('k', 'i'), false) [ Info: (('i',), ('k', 'j'), (), false) [ Info: (('i',), ('k', 'j'), ('i',), false) [ Info: (('i',), ('k', 'j'), ('k',), false) [ Info: (('i',), ('k', 'j'), ('i', 'k'), false) [ Info: (('i',), ('k', 'j'), ('k', 'i'), false) [ Info: (('i',), ('j', 'k'), (), false) [ Info: (('i',), ('j', 'k'), ('i',), false) [ Info: (('i',), ('j', 'k'), ('k',), false) [ Info: (('i',), ('j', 'k'), ('i', 'k'), false) [ Info: (('i',), ('j', 'k'), ('k', 'i'), false) [ Info: (('j',), (), (), false) [ Info: (('j',), (), ('i',), false) [ Info: (('j',), (), ('k',), false) [ Info: (('j',), (), ('i', 'k'), false) [ Info: (('j',), (), ('k', 'i'), false) [ Info: (('j',), ('k',), (), false) [ Info: (('j',), ('k',), ('i',), false) [ Info: (('j',), ('k',), ('k',), false) [ Info: (('j',), ('k',), ('i', 'k'), false) [ Info: (('j',), ('k',), ('k', 'i'), false) [ Info: (('j',), ('j',), (), false) [ Info: (('j',), ('j',), ('i',), false) [ Info: (('j',), ('j',), ('k',), false) [ Info: (('j',), ('j',), ('i', 'k'), false) [ Info: (('j',), ('j',), ('k', 'i'), false) [ Info: (('j',), ('k', 'j'), (), false) [ Info: (('j',), ('k', 'j'), ('i',), false) [ Info: (('j',), ('k', 'j'), ('k',), false) [ Info: (('j',), ('k', 'j'), ('i', 'k'), false) [ Info: (('j',), ('k', 'j'), ('k', 'i'), false) [ Info: (('j',), ('j', 'k'), (), false) [ Info: (('j',), ('j', 'k'), ('i',), false) [ Info: (('j',), ('j', 'k'), ('k',), false) [ Info: (('j',), ('j', 'k'), ('i', 'k'), false) [ Info: (('j',), ('j', 'k'), ('k', 'i'), false) [ Info: (('i', 'j'), (), (), false) [ Info: (('i', 'j'), (), ('i',), false) [ Info: (('i', 'j'), (), ('k',), false) [ Info: (('i', 'j'), (), ('i', 'k'), false) [ Info: (('i', 'j'), (), ('k', 'i'), false) [ Info: (('i', 'j'), ('k',), (), false) [ Info: (('i', 'j'), ('k',), ('i',), false) [ Info: (('i', 'j'), ('k',), ('k',), false) [ Info: (('i', 'j'), ('k',), ('i', 'k'), false) [ Info: (('i', 'j'), ('k',), ('k', 'i'), false) [ Info: (('i', 'j'), ('j',), (), false) [ Info: (('i', 'j'), ('j',), ('i',), false) [ Info: (('i', 'j'), ('j',), ('k',), false) [ Info: (('i', 'j'), ('j',), ('i', 'k'), false) [ Info: (('i', 'j'), ('j',), ('k', 'i'), false) [ Info: (('i', 'j'), ('k', 'j'), (), false) [ Info: (('i', 'j'), ('k', 'j'), ('i',), false) [ Info: (('i', 'j'), ('k', 'j'), ('k',), false) [ Info: (('i', 'j'), ('k', 'j'), ('i', 'k'), false) [ Info: (('i', 'j'), ('k', 'j'), ('k', 'i'), false) [ Info: (('i', 'j'), ('j', 'k'), (), false) [ Info: (('i', 'j'), ('j', 'k'), ('i',), false) [ Info: (('i', 'j'), ('j', 'k'), ('k',), false) [ Info: (('i', 'j'), ('j', 'k'), ('i', 'k'), false) [ Info: (('i', 'j'), ('j', 'k'), ('k', 'i'), false) [ Info: (('j', 'i'), (), (), false) [ Info: (('j', 'i'), (), ('i',), false) [ Info: (('j', 'i'), (), ('k',), false) [ Info: (('j', 'i'), (), ('i', 'k'), false) [ Info: (('j', 'i'), (), ('k', 'i'), false) [ Info: (('j', 'i'), ('k',), (), false) [ Info: (('j', 'i'), ('k',), ('i',), false) [ Info: (('j', 'i'), ('k',), ('k',), false) [ Info: (('j', 'i'), ('k',), ('i', 'k'), false) [ Info: (('j', 'i'), ('k',), ('k', 'i'), false) [ Info: (('j', 'i'), ('j',), (), false) [ Info: (('j', 'i'), ('j',), ('i',), false) [ Info: (('j', 'i'), ('j',), ('k',), false) [ Info: (('j', 'i'), ('j',), ('i', 'k'), false) [ Info: (('j', 'i'), ('j',), ('k', 'i'), false) [ Info: (('j', 'i'), ('k', 'j'), (), false) [ Info: (('j', 'i'), ('k', 'j'), ('i',), false) [ Info: (('j', 'i'), ('k', 'j'), ('k',), false) [ Info: (('j', 'i'), ('k', 'j'), ('i', 'k'), false) [ Info: (('j', 'i'), ('k', 'j'), ('k', 'i'), false) [ Info: (('j', 'i'), ('j', 'k'), (), false) [ Info: (('j', 'i'), ('j', 'k'), ('i',), false) [ Info: (('j', 'i'), ('j', 'k'), ('k',), false) [ Info: (('j', 'i'), ('j', 'k'), ('i', 'k'), false) [ Info: (('j', 'i'), ('j', 'k'), ('k', 'i'), false) Test Summary: | Pass Total Time binary rules | 290 290 2m39.6s Test Summary: | Pass Total Time utils | 36 36 15.6s [ Info: c, c -> cc [ Info: c, cc -> c [ Info: cc, c -> cc [ Info: cc, cc -> cc [ Info: cc, cb -> bc [ Info: cb, bc -> cc [ Info: ac, cc -> ac Test Summary: | Pass Total Time einsum | 92 92 1m23.7s Test Summary: |Time cuda | None 0.0s Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 =# einsum(EinCode(((1, 2), (2, 3), (3, 4)), (1, 4)), (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #40 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 [inlined] [6] (::Zygote.Pullback{Tuple{var"#40#59", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#40#59", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Matrix{Float64}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Matrix{Float64}}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Matrix{Float64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 =# einsum(EinCode(((1, 2), (2, 3), (3, 4)), (4, 1)), (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #41 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 [inlined] [6] (::Zygote.Pullback{Tuple{var"#41#60", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#41#60", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Matrix{Float64}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Matrix{Float64}}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Matrix{Float64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 Test threw exception Expression: bpcheck(((a, v)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 =# einsum(EinCode(((1, 2), (2,)), (1,)), (a, v)) |> abs ∘ sum end), a, v) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Vector{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Int64, Int64}, Vector{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #42 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 [inlined] [6] (::Zygote.Pullback{Tuple{var"#42#61", Matrix{Float64}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64}}, Tuple{Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#42#61", Matrix{Float64}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64}}, Tuple{Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 Test threw exception Expression: bpcheck(((a, v)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 =# einsum(StaticEinCode{Int, ((1, 2), (2,)), (1,)}(), (a, v)) |> abs ∘ sum end), a, v) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Vector{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Int64, Int64}, Vector{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #43 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 [inlined] [6] (::Zygote.Pullback{Tuple{var"#43#62", Matrix{Float64}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}}, Tuple{}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#43#62", Matrix{Float64}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}}, Tuple{}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 Test threw exception Expression: bpcheck(((a, t, v)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 =# (ein"(ab,abcd),c->ad")(a, t, v) |> abs ∘ sum end), a, T.(t), v) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('a', 'd', 'c'), ('c',)), ('a', 'd')}, Tuple{Array{Float64, 3}, Vector{Float64}}, Dict{Char, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] (::Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('a', 'd', 'c'), ('c',)), ('a', 'd')}, Tuple{Array{Float64, 3}, Vector{Float64}}, Dict{Char, Int64}, Matrix{Float64}}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsequence.jl:286 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Tuple{Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Dict{Char, Int64}}, Any})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #_#128 @ ~/.julia/packages/OMEinsum/FCR12/src/einsequence.jl:260 [inlined] [6] (::Zygote.Pullback{Tuple{OMEinsum.var"##_#128", Nothing, @Kwargs{}, StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Any})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] #305 @ ~/.julia/packages/Zygote/3To5I/src/lib/lib.jl:215 [inlined] [8] #2190#back @ ~/.julia/packages/ZygoteRules/CkVIK/src/adjoint.jl:72 [inlined] [9] NestedEinsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsequence.jl:257 [inlined] [10] (::Zygote.Pullback{Tuple{StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{OMEinsum.var"##_#128", Nothing, @Kwargs{}, StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Any}}}, Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [11] #44 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 [inlined] [12] (::Zygote.Pullback{Tuple{var"#44#63", Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{OMEinsum.var"##_#128", Nothing, @Kwargs{}, StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Any}}}, Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [13] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#44#63", Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{OMEinsum.var"##_#128", Nothing, @Kwargs{}, StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{Float64}, Array{Float64, 4}, Vector{Float64}}, Any}}}, Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [14] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [15] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [16] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [17] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [19] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [21] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [22] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [23] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 Test threw exception Expression: bpcheck(((a, b)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 =# einsum(EinCode(((1, 2), (1, 2)), ()), (a, b)) |> abs ∘ sum end), a, b) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Array{Float64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #45 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 [inlined] [6] (::Zygote.Pullback{Tuple{var"#45#64", Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#45#64", Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 Test threw exception Expression: bpcheck((a->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 =# einsum(EinCode(((1, 1),), ()), (a,)) |> abs ∘ sum end), a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Array{Float64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #46 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 [inlined] [6] (::Zygote.Pullback{Tuple{var"#46#65", Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#46#65", Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 Test threw exception Expression: bpcheck((aa->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 =# einsum(EinCode(((1, 2, 2, 1),), ()), (aa,)) |> abs ∘ sum end), aa) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Array{Float64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #47 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 [inlined] [6] (::Zygote.Pullback{Tuple{var"#47#66", Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#47#66", Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{Float64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{Float64, 4}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{Float64, 4}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 Test threw exception Expression: bpcheck((aa->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 =# einsum(EinCode(((1, 2, 2, 3),), (1, 3)), (aa,)) |> abs ∘ sum end), aa) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #48 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 [inlined] [6] (::Zygote.Pullback{Tuple{var"#48#67", Array{Float64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#48#67", Array{Float64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{Float64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{Float64, 4}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{Float64, 4}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 Test threw exception Expression: bpcheck((aa->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 =# einsum(EinCode(((1, 2, 2, 3),), (1, 2, 3)), (aa,)) |> abs ∘ sum end), aa) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Array{Float64, 3} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 3}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #49 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 [inlined] [6] (::Zygote.Pullback{Tuple{var"#49#68", Array{Float64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{Int64, Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 3}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 3}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 3}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 3}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 3}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#49#68", Array{Float64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{Int64, Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 3}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 3}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 3}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 3}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 3}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{Float64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{Float64, 4}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{Float64, 4}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 Test threw exception Expression: bpcheck((a->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 =# einsum(EinCode(((1, 2),), (2, 1)), (a,)) |> abs ∘ sum end), a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #50 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 [inlined] [6] (::Zygote.Pullback{Tuple{var"#50#69", Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#50#69", Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 Test threw exception Expression: bpcheck((t->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 =# einsum(EinCode(((1, 2, 3, 4),), (2, 3, 1, 4)), (t,)) |> abs ∘ sum end), t) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Array{Float64, 4} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 4}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #51 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 [inlined] [6] (::Zygote.Pullback{Tuple{var"#51#70", Array{Float64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, NTuple{4, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 4}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#51#70", Array{Float64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, NTuple{4, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 4}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{Float64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{Float64, 4}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{Float64, 4}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 Test threw exception Expression: bpcheck(((t, a)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 =# einsum(EinCode(((1, 2, 3, 4), (2, 3)), (1, 4)), (t, a)) |> abs ∘ sum end), t, a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #52 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 [inlined] [6] (::Zygote.Pullback{Tuple{var"#52#71", Array{Float64, 4}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#52#71", Array{Float64, 4}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Array{Float64, 4}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Array{Float64, 4}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Array{Float64, 4}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 Test threw exception Expression: bpcheck(((t, a)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 =# einsum(EinCode(((4, 3, 2, 1), (2, 3)), (1, 4)), (t, a)) |> abs ∘ sum end), t, a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #53 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 [inlined] [6] (::Zygote.Pullback{Tuple{var"#53#72", Array{Float64, 4}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#53#72", Array{Float64, 4}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Array{Float64, 4}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Array{Float64, 4}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Array{Float64, 4}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 =# einsum(EinCode(((1, 2), (1, 3), (1, 4)), (2, 3, 4)), (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Array{Float64, 3} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 3}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #54 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 [inlined] [6] (::Zygote.Pullback{Tuple{var"#54#73", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 3}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 3}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 3}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 3}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 3}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#54#73", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 3}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 3}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 3}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 3}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 3}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 =# einsum(EinCode(((1, 2), (1, 2), (1, 3)), (3,)), (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Vector{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Vector{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #55 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 [inlined] [6] (::Zygote.Pullback{Tuple{var"#55#74", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#55#74", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 Test threw exception Expression: bpcheck((a->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 =# einsum(EinCode(((1, 2, 3),), (1, 2)), (a,)) |> abs ∘ sum end), a3) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 3}}, Dict{Int64, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 3}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 3}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #56 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 [inlined] [6] (::Zygote.Pullback{Tuple{var"#56#75", Array{Float64, 3}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 3}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 3}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#56#75", Array{Float64, 3}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 3}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 3}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{Float64, 3}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{Float64, 3}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{Float64, 3}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 Test threw exception Expression: bpcheck(((a, b)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 =# einsum(EinCode(((1, 2), (1, 2)), (1, 2)), (a, b)) |> abs ∘ sum end), a, b) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #57 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 [inlined] [6] (::Zygote.Pullback{Tuple{var"#57#76", Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#57#76", Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 Float64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 Test threw exception Expression: bpcheck(((a, b)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 =# einsum(EinCode(((1, 2), (3, 4)), (1, 2, 3, 4)), (a, b)) |> abs ∘ sum end), a, b) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Array{Float64, 4} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 4}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #58 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 [inlined] [6] (::Zygote.Pullback{Tuple{var"#58#77", Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, NTuple{4, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 4}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#58#77", Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, NTuple{4, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 4}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 =# einsum(EinCode(((1, 2), (2, 3), (3, 4)), (1, 4)), (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #40 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 [inlined] [6] (::Zygote.Pullback{Tuple{var"#40#59", Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#40#59", Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:49 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 =# einsum(EinCode(((1, 2), (2, 3), (3, 4)), (4, 1)), (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #41 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 [inlined] [6] (::Zygote.Pullback{Tuple{var"#41#60", Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#41#60", Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:50 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 Test threw exception Expression: bpcheck(((a, v)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 =# einsum(EinCode(((1, 2), (2,)), (1,)), (a, v)) |> abs ∘ sum end), a, v) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Vector{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #42 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 [inlined] [6] (::Zygote.Pullback{Tuple{var"#42#61", Matrix{ComplexF64}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64}}, Tuple{Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#42#61", Matrix{ComplexF64}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64}}, Tuple{Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:51 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 Test threw exception Expression: bpcheck(((a, v)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 =# einsum(StaticEinCode{Int, ((1, 2), (2,)), (1,)}(), (a, v)) |> abs ∘ sum end), a, v) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Vector{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #43 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 [inlined] [6] (::Zygote.Pullback{Tuple{var"#43#62", Matrix{ComplexF64}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}}, Tuple{}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#43#62", Matrix{ComplexF64}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}, Tuple{Matrix{ComplexF64}, Vector{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{StaticEinCode{Int64, ((1, 2), (2,)), (1,)}}}, Tuple{}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:52 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 Test threw exception Expression: bpcheck(((a, t, v)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 =# (ein"(ab,abcd),c->ad")(a, t, v) |> abs ∘ sum end), a, T.(t), v) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('a', 'd', 'c'), ('c',)), ('a', 'd')}, Tuple{Array{ComplexF64, 3}, Vector{ComplexF64}}, Dict{Char, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] (::Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('a', 'd', 'c'), ('c',)), ('a', 'd')}, Tuple{Array{ComplexF64, 3}, Vector{ComplexF64}}, Dict{Char, Int64}, Matrix{ComplexF64}}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsequence.jl:286 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Tuple{Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Dict{Char, Int64}}, Any})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #_#128 @ ~/.julia/packages/OMEinsum/FCR12/src/einsequence.jl:260 [inlined] [6] (::Zygote.Pullback{Tuple{OMEinsum.var"##_#128", Nothing, @Kwargs{}, StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Any})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] #305 @ ~/.julia/packages/Zygote/3To5I/src/lib/lib.jl:215 [inlined] [8] #2190#back @ ~/.julia/packages/ZygoteRules/CkVIK/src/adjoint.jl:72 [inlined] [9] NestedEinsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsequence.jl:257 [inlined] [10] (::Zygote.Pullback{Tuple{StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{OMEinsum.var"##_#128", Nothing, @Kwargs{}, StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Any}}}, Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [11] #44 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 [inlined] [12] (::Zygote.Pullback{Tuple{var"#44#63", Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{OMEinsum.var"##_#128", Nothing, @Kwargs{}, StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Any}}}, Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [13] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#44#63", Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{OMEinsum.var"##_#128", Nothing, @Kwargs{}, StaticNestedEinsum{Char, (ab, abcd -> adc ├─ ab └─ abcd , 3 ), adc, c -> ad}, Matrix{ComplexF64}, Array{ComplexF64, 4}, Vector{ComplexF64}}, Any}}}, Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [14] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [15] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [16] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [17] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 [inlined] [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [19] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:53 [inlined] [20] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [21] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [22] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [23] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 Test threw exception Expression: bpcheck(((a, b)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 =# einsum(EinCode(((1, 2), (1, 2)), ()), (a, b)) |> abs ∘ sum end), a, b) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Array{ComplexF64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #45 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 [inlined] [6] (::Zygote.Pullback{Tuple{var"#45#64", Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#45#64", Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:56 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 Test threw exception Expression: bpcheck((a->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 =# einsum(EinCode(((1, 1),), ()), (a,)) |> abs ∘ sum end), a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Array{ComplexF64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #46 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 [inlined] [6] (::Zygote.Pullback{Tuple{var"#46#65", Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#46#65", Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:59 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 Test threw exception Expression: bpcheck((aa->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 =# einsum(EinCode(((1, 2, 2, 1),), ()), (aa,)) |> abs ∘ sum end), aa) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Array{ComplexF64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Array{ComplexF64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 0}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #47 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 [inlined] [6] (::Zygote.Pullback{Tuple{var"#47#66", Array{ComplexF64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#47#66", Array{ComplexF64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 0}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 0}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 0}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{ComplexF64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{ComplexF64, 4}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{ComplexF64, 4}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:61 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 Test threw exception Expression: bpcheck((aa->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 =# einsum(EinCode(((1, 2, 2, 3),), (1, 3)), (aa,)) |> abs ∘ sum end), aa) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #48 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 [inlined] [6] (::Zygote.Pullback{Tuple{var"#48#67", Array{ComplexF64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#48#67", Array{ComplexF64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{ComplexF64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{ComplexF64, 4}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{ComplexF64, 4}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:64 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 Test threw exception Expression: bpcheck((aa->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 =# einsum(EinCode(((1, 2, 2, 3),), (1, 2, 3)), (aa,)) |> abs ∘ sum end), aa) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Array{ComplexF64, 3} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Array{ComplexF64, 3}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Array{ComplexF64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #49 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 [inlined] [6] (::Zygote.Pullback{Tuple{var"#49#68", Array{ComplexF64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Array{ComplexF64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{Int64, Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 3}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 3}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 3}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 3}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 3}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#49#68", Array{ComplexF64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 4}}, Dict{Int64, Int64}, Array{ComplexF64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, Tuple{Int64, Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 3}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 3}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 3}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 3}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 3}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{ComplexF64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{ComplexF64, 4}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{ComplexF64, 4}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:67 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 Test threw exception Expression: bpcheck((a->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 =# einsum(EinCode(((1, 2),), (2, 1)), (a,)) |> abs ∘ sum end), a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #50 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 [inlined] [6] (::Zygote.Pullback{Tuple{var"#50#69", Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#50#69", Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:70 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 Test threw exception Expression: bpcheck((t->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 =# einsum(EinCode(((1, 2, 3, 4),), (2, 3, 1, 4)), (t,)) |> abs ∘ sum end), t) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Array{Float64, 4} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 4}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Array{Float64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #51 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 [inlined] [6] (::Zygote.Pullback{Tuple{var"#51#70", Array{Float64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, NTuple{4, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 4}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#51#70", Array{Float64, 4}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}}, Dict{Int64, Int64}, Array{Float64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}}, NTuple{4, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{Float64, 4}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{Float64, 4}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{Float64, 4}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{Float64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{Float64, 4}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{Float64, 4}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:71 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 Test threw exception Expression: bpcheck(((t, a)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 =# einsum(EinCode(((1, 2, 3, 4), (2, 3)), (1, 4)), (t, a)) |> abs ∘ sum end), t, a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #52 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 [inlined] [6] (::Zygote.Pullback{Tuple{var"#52#71", Array{Float64, 4}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#52#71", Array{Float64, 4}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Array{Float64, 4}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Array{Float64, 4}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Array{Float64, 4}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:74 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 Test threw exception Expression: bpcheck(((t, a)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 =# einsum(EinCode(((4, 3, 2, 1), (2, 3)), (1, 4)), (t, a)) |> abs ∘ sum end), t, a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #53 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 [inlined] [6] (::Zygote.Pullback{Tuple{var"#53#72", Array{Float64, 4}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#53#72", Array{Float64, 4}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{Float64, 4}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{NTuple{4, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Array{Float64, 4}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Array{Float64, 4}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Array{Float64, 4}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:75 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 =# einsum(EinCode(((1, 2), (1, 3), (1, 4)), (2, 3, 4)), (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Array{ComplexF64, 3} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 3}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 3}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #54 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 [inlined] [6] (::Zygote.Pullback{Tuple{var"#54#73", Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 3}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 3}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 3}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 3}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 3}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#54#73", Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 3}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 3}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 3}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 3}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 3}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 3}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:78 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 =# einsum(EinCode(((1, 2), (1, 2), (1, 3)), (3,)), (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Vector{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Vector{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #55 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 [inlined] [6] (::Zygote.Pullback{Tuple{var"#55#74", Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#55#74", Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Vector{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Vector{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:81 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 Test threw exception Expression: bpcheck((a->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 =# einsum(EinCode(((1, 2, 3),), (1, 2)), (a,)) |> abs ∘ sum end), a3) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 3}}, Dict{Int64, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 3}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 3}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #56 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 [inlined] [6] (::Zygote.Pullback{Tuple{var"#56#75", Array{ComplexF64, 3}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 3}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 3}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#56#75", Array{ComplexF64, 3}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 3}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Array{ComplexF64, 3}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(f::Function, args::Array{ComplexF64, 3}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(f::Function, args::Array{ComplexF64, 3}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(f::Function, args::Array{ComplexF64, 3}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:85 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 Test threw exception Expression: bpcheck(((a, b)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 =# einsum(EinCode(((1, 2), (1, 2)), (1, 2)), (a, b)) |> abs ∘ sum end), a, b) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Matrix{ComplexF64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Matrix{ComplexF64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #57 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 [inlined] [6] (::Zygote.Pullback{Tuple{var"#57#76", Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#57#76", Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Matrix{ComplexF64}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, Tuple{Int64, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Matrix{ComplexF64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{ComplexF64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:88 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 ComplexF64: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 Test threw exception Expression: bpcheck(((a, b)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 =# einsum(EinCode(((1, 2), (3, 4)), (1, 2, 3, 4)), (a, b)) |> abs ∘ sum end), a, b) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}} to an object of type Array{ComplexF64, 4} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 4}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{ComplexF64, Colon, Array{ComplexF64, 4}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{ComplexF64, @NamedTuple{}}, axes::NTuple{4, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{ComplexF64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #58 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 [inlined] [6] (::Zygote.Pullback{Tuple{var"#58#77", Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, NTuple{4, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 4}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 4}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 4}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 4}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#58#77", Matrix{ComplexF64}, Matrix{ComplexF64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 4}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{Type{EinCode}, Tuple{Tuple{Int64, Int64}, Tuple{Int64, Int64}}, NTuple{4, Int64}}, Tuple{Zygote.ZBack{Returns{Tuple{ChainRulesCore.NoTangent, ChainRulesCore.NoTangent, ChainRulesCore.NoTangent}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(|>), Array{ComplexF64, 4}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 4}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Array{ComplexF64, 4}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Array{ComplexF64, 4}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Array{ComplexF64, 4}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{ComplexF64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{ComplexF64}, ::Vararg{Matrix{ComplexF64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:91 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:46 [inlined] [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [17] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:43 gradient type check: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:100 Test threw exception Expression: array_match((gradient((a->(#= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:100 =# (einsum(EinCode(((1, 2), (2, 1)), ()), (a, b)))[] |> abs)), a))[1], a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{Float64, 0}, Float64, Tuple{}}}, ChainRules.var"#671#673"{Array{Float64, 0}, Float64, Tuple{}}} to an object of type Array{Float64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{Float64, 0}, Float64, Tuple{}}}, ChainRules.var"#671#673"{Array{Float64, 0}, Float64, Tuple{}}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{Float64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{Float64, 0}, Float64, Tuple{}}}, ChainRules.var"#671#673"{Array{Float64, 0}, Float64, Tuple{}}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #78 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:100 [inlined] [6] (::Zygote.Pullback{Tuple{var"#78#83", Matrix{Float64}}, Any})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#78#83", Matrix{Float64}}, Any}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:100 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [13] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:97 gradient type check: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:102 Test threw exception Expression: array_match((gradient((a->(#= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:102 =# (einsum(EinCode(((1, 2), (2, 1)), ()), (a, b)))[] |> abs)), a))[1], a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}} to an object of type Array{ComplexF64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{Float64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #79 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:102 [inlined] [6] (::Zygote.Pullback{Tuple{var"#79#84", Matrix{Float64}}, Any})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#79#84", Matrix{Float64}}, Any}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:102 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:102 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [13] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:97 gradient type check: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:104 Test threw exception Expression: array_match((gradient((a->(#= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:104 =# (einsum(EinCode(((1, 2), (2, 3)), ()), (a, b)))[] |> abs)), a))[1], a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}} to an object of type Array{ComplexF64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{ComplexF64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #80 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:104 [inlined] [6] (::Zygote.Pullback{Tuple{var"#80#85", Matrix{ComplexF64}}, Any})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#80#85", Matrix{ComplexF64}}, Any}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:104 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:104 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [13] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:97 gradient type check: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:106 Test threw exception Expression: array_match((gradient((a->(#= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:106 =# (einsum(EinCode(((1, 2), (2, 3)), ()), (a, b)))[] |> abs)), a))[1], a) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}} to an object of type Array{ComplexF64, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), DynamicEinCode{Int64}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), DynamicEinCode{Int64}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:ixs, Zygote.Context{false}, DynamicEinCode{Int64}, Vector{Vector{Int64}}}}}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{DynamicEinCode{Int64}, Tuple{Matrix{ComplexF64}, Matrix{Float64}}, Dict{Int64, Int64}, Array{ComplexF64, 0}}}, Zygote.Pullback{Tuple{Type{Dict{Int64, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}, ChainRules.var"#671#673"{Array{ComplexF64, 0}, ComplexF64, Tuple{}}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #81 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:106 [inlined] [6] (::Zygote.Pullback{Tuple{var"#81#86", Matrix{ComplexF64}}, Any})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#81#86", Matrix{ComplexF64}}, Any}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{ComplexF64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:106 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:106 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [13] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:97 string-specification: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:112 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:112 =# einsum(ein"ij,jk,kl -> il", (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #87 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:112 [inlined] [6] (::Zygote.Pullback{Tuple{var"#87#90", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#87#90", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Matrix{Float64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:112 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:112 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:110 string-specification: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:113 Test threw exception Expression: bpcheck(((a, b, c)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:113 =# einsum(ein"ij,jk,kl -> li", (a, b, c)) |> abs ∘ sum end), a, b, c) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #88 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:113 [inlined] [6] (::Zygote.Pullback{Tuple{var"#88#91", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#88#91", Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}, Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('l', 'i')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Matrix{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Matrix{Float64}}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:113 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:113 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:110 string-specification: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:114 Test threw exception Expression: bpcheck(((a, v)->begin #= /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:114 =# einsum(ein"ij,j -> i", (a, v)) |> abs ∘ sum end), a, v) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Vector{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Char, Int64}, Vector{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] ZBack @ ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [inlined] [3] einsum @ ~/.julia/packages/OMEinsum/FCR12/src/einsum.jl:25 [inlined] [4] (::Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Char, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #89 @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:114 [inlined] [6] (::Zygote.Pullback{Tuple{var"#89#92", Matrix{Float64}, Vector{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Char, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Vector{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [7] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#89#92", Matrix{Float64}, Vector{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(einsum), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Zygote.Pullback{Tuple{typeof(labeltype), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}}, Tuple{}}, Zygote.Pullback{Tuple{typeof(getixs), StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}}, Tuple{}}, Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j',)), ('i',)}, Tuple{Matrix{Float64}, Vector{Float64}}, Dict{Char, Int64}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{Dict{Char, Int64}}}, Tuple{}}, Zygote.ZBack{Returns{NTuple{4, ChainRulesCore.NoTangent}}}}}, Zygote.Pullback{Tuple{typeof(|>), Vector{Float64}, ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.Pullback{Tuple{ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(abs), typeof(sum)}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(abs), typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum)}, Tuple{Vector{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#abs_pullback#405"{Float64, Float64}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(abs)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(abs), typeof(sum)}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(sum)}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(abs)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(abs)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(abs), typeof(sum)}, typeof(abs)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}, Zygote.Pullback{Tuple{typeof(∘), typeof(abs), typeof(sum)}, Tuple{Zygote.Pullback{Tuple{Type{ComposedFunction}, typeof(abs), typeof(sum)}, Any}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [8] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [9] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}; η::Float64, verbose::Bool) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:25 [10] bpcheck(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Main ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:24 [11] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:114 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [13] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:114 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [15] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:110 sequence specification: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:119 Test threw exception Expression: all(gradient(sum ∘ ein"ij,jk,kl -> il", a, b, c) .≈ gradient(sum ∘ ein"(ij,(jk,kl)) -> il", a, b, c)) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}} to an object of type Matrix{Float64} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] (::Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Dict{Char, Int64}, Matrix{Float64}}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [3] #_#96 @ ~/.julia/packages/OMEinsum/FCR12/src/interfaces.jl:56 [inlined] [4] (::Zygote.Pullback{Tuple{OMEinsum.var"##_#96", Nothing, StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Any})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #305 @ ~/.julia/packages/Zygote/3To5I/src/lib/lib.jl:215 [inlined] [6] #2190#back @ ~/.julia/packages/ZygoteRules/CkVIK/src/adjoint.jl:72 [inlined] [7] StaticEinCode @ ~/.julia/packages/OMEinsum/FCR12/src/interfaces.jl:54 [inlined] [8] #305 @ ~/.julia/packages/Zygote/3To5I/src/lib/lib.jl:215 [inlined] [9] (::Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{OMEinsum.var"##_#96", Nothing, StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}, Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Any}}}}}}})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/ZygoteRules/CkVIK/src/adjoint.jl:72 [10] call_composed @ ./operators.jl:1045 [inlined] [11] (::Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, @Kwargs{}}, Any})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [12] call_composed @ ./operators.jl:1044 [inlined] [13] #_#103 @ ./operators.jl:1041 [inlined] [14] (::Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#sum_pullback#720"{Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(sum)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, typeof(sum)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [15] #305 @ ~/.julia/packages/Zygote/3To5I/src/lib/lib.jl:215 [inlined] [16] #2190#back @ ~/.julia/packages/ZygoteRules/CkVIK/src/adjoint.jl:72 [inlined] [17] ComposedFunction @ ./operators.jl:1041 [inlined] [18] (::Zygote.Pullback{Tuple{ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#sum_pullback#720"{Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(sum)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, typeof(sum)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [19] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{Type{NamedTuple}}, Tuple{}}, Zygote.var"#2387#back#434"{Zygote.var"#pairs_namedtuple_pullback#433"{(), @NamedTuple{}}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing, Nothing, Nothing}}, Zygote.Pullback{Tuple{Base.var"##_#103", @Kwargs{}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, @Kwargs{}}, Tuple{Zygote.Pullback{Tuple{typeof(Base.call_composed), Tuple{StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}}, @Kwargs{}}, Any}, Zygote.var"#2162#back#295"{Zygote.var"#291#294"}, Zygote.ZBack{ChainRules.var"#sum_pullback#720"{Colon, Matrix{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}}}}, Zygote.var"#2050#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, typeof(sum)}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}}, Tuple{Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:inner, Zygote.Context{false}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), typeof(sum)}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), typeof(sum)}, Tuple{}}}}, Zygote.Pullback{Tuple{typeof(Base.unwrap_composed), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.Pullback{Tuple{typeof(Base.maybeconstructor), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, Tuple{}}}}, Zygote.var"#2201#back#317"{Zygote.var"#back#316"{:outer, Zygote.Context{false}, ComposedFunction{typeof(sum), StaticEinCode{Char, (('i', 'j'), ('j', 'k'), ('k', 'l')), ('i', 'l')}}, typeof(sum)}}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing}, Tuple{Nothing}}, Zygote.var"#2034#back#218"{typeof(identity)}}}}}}}}}, Zygote.var"#2034#back#218"{typeof(identity)}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [20] gradient(::Function, ::Matrix{Float64}, ::Vararg{Any}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [21] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:119 [inlined] [22] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [23] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:119 [inlined] [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [25] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:118 hessian: Error During Test at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:126 Test threw exception Expression: Zygote.hessian(loss, x) == ForwardDiff.hessian(loss, x) MethodError: Cannot `convert` an object of type ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, ForwardDiff.Dual{Nothing, Float64, 4}, Tuple{}}}, ChainRules.var"#671#673"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, ForwardDiff.Dual{Nothing, Float64, 4}, Tuple{}}} to an object of type Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0} Closest candidates are: convert(::Type{Array{S, N}}, !Matched::PooledArrays.PooledArray{T, R, N}) where {S, T, R, N} @ PooledArrays ~/.julia/packages/PooledArrays/Vy2X0/src/PooledArrays.jl:499 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:88 convert(::Type{Array{T, N}}, !Matched::StaticArraysCore.SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} @ StaticArrays ~/.julia/packages/StaticArrays/2dZx4/src/SizedArray.jl:82 ... Stacktrace: [1] (::OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'),), ()}, Tuple{Matrix{ForwardDiff.Dual{Nothing, Float64, 4}}}, Dict{Char, Int64}, Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, ForwardDiff.Dual{Nothing, Float64, 4}, Tuple{}}}, ChainRules.var"#671#673"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, ForwardDiff.Dual{Nothing, Float64, 4}, Tuple{}}}) @ OMEinsum ~/.julia/packages/OMEinsum/FCR12/src/autodiff.jl:35 [2] (::Zygote.ZBack{OMEinsum.var"#einsum_pullback#167"{StaticEinCode{Char, (('i', 'j'),), ()}, Tuple{Matrix{ForwardDiff.Dual{Nothing, Float64, 4}}}, Dict{Char, Int64}, Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}}})(dy::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, ForwardDiff.Dual{Nothing, Float64, 4}, Tuple{}}}, ChainRules.var"#671#673"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, ForwardDiff.Dual{Nothing, Float64, 4}, Tuple{}}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/chainrules.jl:221 [3] #_#96 @ ~/.julia/packages/OMEinsum/FCR12/src/interfaces.jl:56 [inlined] [4] (::Zygote.Pullback{Tuple{OMEinsum.var"##_#96", Nothing, StaticEinCode{Char, (('i', 'j'),), ()}, Matrix{ForwardDiff.Dual{Nothing, Float64, 4}}}, Any})(Δ::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, ForwardDiff.Dual{Nothing, Float64, 4}, Tuple{}}}, ChainRules.var"#671#673"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, ForwardDiff.Dual{Nothing, Float64, 4}, Tuple{}}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface2.jl:0 [5] #305 @ ~/.julia/packages/Zygote/3To5I/src/lib/lib.jl:215 [inlined] [6] #2190#back @ ~/.julia/packages/ZygoteRules/CkVIK/src/adjoint.jl:72 [inlined] [7] StaticEinCode @ ~/.julia/packages/OMEinsum/FCR12/src/interfaces.jl:54 [inlined] [8] loss @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:124 [inlined] [9] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{var"#loss#93", Matrix{ForwardDiff.Dual{Nothing, Float64, 4}}}, Tuple{Zygote.ZBack{ChainRules.var"#sin_pullback#383"{ForwardDiff.Dual{Nothing, Float64, 4}}}, Zygote.ZBack{ChainRules.var"#getindex_pullback#670"{Array{ForwardDiff.Dual{Nothing, Float64, 4}, 0}, Tuple{}, Tuple{}}}, Zygote.Pullback{Tuple{StaticEinCode{Char, (('i', 'j'),), ()}, Matrix{ForwardDiff.Dual{Nothing, Float64, 4}}}, Tuple{Zygote.var"#2034#back#218"{typeof(identity)}, Zygote.var"#2190#back#307"{Zygote.var"#305#306"{Tuple{Tuple{Nothing, Nothing}, Tuple{Nothing}}, Zygote.Pullback{Tuple{OMEinsum.var"##_#96", Nothing, StaticEinCode{Char, (('i', 'j'),), ()}, Matrix{ForwardDiff.Dual{Nothing, Float64, 4}}}, Any}}}}}}}})(Δ::ForwardDiff.Dual{Nothing, Float64, 4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:97 [10] gradient(f::Function, args::Matrix{ForwardDiff.Dual{Nothing, Float64, 4}}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/compiler/interface.jl:154 [11] #139 @ ~/.julia/packages/Zygote/3To5I/src/lib/grad.jl:104 [inlined] [12] forward_jacobian(f::Zygote.var"#139#140"{var"#loss#93"}, x::Matrix{Float64}, ::Val{4}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/lib/forward.jl:29 [13] forward_jacobian(f::Function, x::Matrix{Float64}; chunk_threshold::Int64) @ Zygote ~/.julia/packages/Zygote/3To5I/src/lib/forward.jl:44 [14] forward_jacobian @ ~/.julia/packages/Zygote/3To5I/src/lib/forward.jl:42 [inlined] [15] hessian_dual @ ~/.julia/packages/Zygote/3To5I/src/lib/grad.jl:104 [inlined] [16] hessian(f::Function, x::Matrix{Float64}) @ Zygote ~/.julia/packages/Zygote/3To5I/src/lib/grad.jl:102 [17] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [18] macro expansion @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:126 [inlined] [19] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [20] top-level scope @ ~/.julia/packages/OMEinsum/FCR12/test/autodiff.jl:124 Test Summary: | Error Total Time autodiff | 47 47 4m02.9s einsum bp | 38 38 2m24.6s Float64 | 19 19 1m38.4s ComplexF64 | 19 19 46.2s gradient type check | 4 4 7.5s string-specification | 3 3 5.5s sequence specification | 1 1 2.1s hessian | 1 1 4.8s ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 47 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/OMEinsum/FCR12/test/runtests.jl:38 Testing failed after 614.67s ERROR: LoadError: Package OMEinsum errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:2034 [3] test @ /opt/julia/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1915 [inlined] [4] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::Base.PipeEndpoint}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.10/Pkg/src/API.jl:444 [5] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.PipeEndpoint, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.10/Pkg/src/API.jl:159 [6] test @ /opt/julia/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined] [7] #test#74 @ /opt/julia/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined] [8] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:219 in expression starting at /PkgEval.jl/scripts/evaluate.jl:210 PkgEval failed after 860.12s: package tests unexpectedly errored