{"id":44907,"library":"fancy-einsum","title":"Fancy Einsum","description":"A drop-in replacement for torch/numpy einsum that allows descriptive variable names in equations. Current version 0.0.3. Infrequently updated; released in 2021.","status":"active","version":"0.0.3","language":"python","source_language":"en","source_url":"https://github.com/Kiv/fancy_einsum","tags":["einsum","torch","numpy","named-axes","tensor"],"install":[{"cmd":"pip install fancy-einsum","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from fancy_einsum import fancy_einsum","symbol":"einsum","correct":"from fancy_einsum import einsum"},{"symbol":"get_backend","correct":"from fancy_einsum import get_backend"},{"symbol":"convert_equation","correct":"from fancy_einsum import convert_equation"}],"quickstart":{"code":"import torch\nfrom fancy_einsum import fancy_einsum\n\nx = torch.randn(3, 4)\ny = torch.randn(4, 5)\n# Using descriptive names: 'batch seq' -> 'batch hidden'\nz = fancy_einsum('batch seq, seq hidden -> batch hidden', x, y)\nprint(z.shape)  # torch.Size([3, 5])","lang":"python","description":"Einstein summation with descriptive axis names instead of letters."},"warnings":[{"fix":"Ensure spaces between names and that contraction axes use the same name.","message":"Variable names must be separated by spaces; repeated names imply contraction.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace '...' with explicit dimension names like 'batch'.","message":"Does not support ellipsis (...) for batch dimensions; use explicit names.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using einops.einsum with named axes or torch.einsum with named tensors.","message":"Library is not actively maintained; last release May 2021. May not support newer PyTorch versions.","severity":"deprecated","affected_versions":">=0.0.3"}],"env_vars":null,"search_vec":"'0.0.3':20 '2021':25 'allow':12 'axe':31 'current':18 'descript':13 'drop':5 'drop-in':4 'einsum':2,10,26 'equat':17 'fanci':1 'infrequ':21 'name':15,30 'named-ax':29 'numpi':28 'releas':23 'replac':7 'tensor':32 'torch':27 'torch/numpy':9 'updat':22 'variabl':14 'version':19","created_at":"2026-06-07T12:52:25.475785+00:00","updated_at":"2026-06-07T12:52:25.475785+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Kiv/fancy_einsum","github":"https://github.com/Kiv/fancy_einsum","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}