본문으로 건너뛰기
cccskills
무료GitHub에 공개

einops

Use the einops Python package for readable tensor rearrangement, reductions, repetition, named-axis einsum, packing, framework layers, and repository maintenance workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(28)

  • SKILL.md4.8 KB
  • references/repo-provenance.md3.0 KB
  • references/repo-routing-metadata.json438 B
  • references/troubleshooting.md4.1 KB
  • scripts/check_einops_install.py2.9 KB
  • sub-skills/framework-integrations/references/backends-and-array-api.md6.0 KB
  • sub-skills/framework-integrations/references/layers-and-einmix.md6.0 KB
  • sub-skills/framework-integrations/references/troubleshooting.md5.9 KB
  • sub-skills/framework-integrations/scripts/array_api_smoke.py7.4 KB
  • sub-skills/framework-integrations/scripts/layer_smoke.py11.6 KB
  • sub-skills/framework-integrations/SKILL.md5.3 KB
  • sub-skills/named-einsum-and-packing/references/api-reference.md12.0 KB
  • sub-skills/named-einsum-and-packing/references/troubleshooting.md6.0 KB
  • sub-skills/named-einsum-and-packing/references/workflows.md7.5 KB
  • sub-skills/named-einsum-and-packing/scripts/einsum_smoke.py5.8 KB
  • sub-skills/named-einsum-and-packing/scripts/packing_smoke.py9.2 KB
  • sub-skills/named-einsum-and-packing/SKILL.md7.0 KB
  • sub-skills/repo-development/references/docs-and-tests.md9.9 KB
  • sub-skills/repo-development/references/maintainer-troubleshooting.md9.4 KB
  • sub-skills/repo-development/scripts/convert_readme_for_docs.py2.0 KB
  • sub-skills/repo-development/scripts/notebook_execution_check.py3.3 KB
  • sub-skills/repo-development/scripts/run_selected_einops_tests.py4.1 KB
  • sub-skills/repo-development/SKILL.md7.1 KB
  • sub-skills/tensor-operations/references/api-reference.md10.9 KB
  • sub-skills/tensor-operations/references/pattern-recipes.md10.1 KB
  • sub-skills/tensor-operations/references/troubleshooting.md11.9 KB
  • sub-skills/tensor-operations/scripts/shape_recipe_smoke.py7.9 KB
  • sub-skills/tensor-operations/SKILL.md6.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

einops Repo Skill

Use this repo skill when a task involves the einops Python package: readable and shape-checked tensor manipulation, named axes, deep-learning tensor refactors, reversible token/feature packing, optional framework layers, or maintainer workflows for the einops repository.

Install and Minimal Check

Public package install:

pip install einops

einops declares no runtime dependencies. Install NumPy, PyTorch, TensorFlow, JAX, or another tensor framework separately according to the user's project. For a minimal core check with NumPy installed:

import numpy as np
from einops import rearrange, reduce, repeat

x = np.arange(2 * 3 * 4).reshape(2, 3, 4)
assert rearrange(x, "batch channel time -> batch time channel").shape == (2, 4, 3)
assert reduce(x, "batch channel time -> batch time", "sum").shape == (2, 4)
assert repeat(x, "batch channel time -> batch channel time copy", copy=2).shape == (2, 3, 4, 2)

For a bundled diagnostic, run scripts/check_einops_install.py after installing einops and, for the full smoke, numpy.

Route Map

  • sub-skills/tensor-operations/: use rearrange, reduce, repeat, parse_shape, and asnumpy for core tensor shape transformations, pooling, broadcasting, stack/concatenate, ellipsis, and pattern troubleshooting.
  • sub-skills/named-einsum-and-packing/: use einsum, pack, and unpack for named-axis contractions, attention-like dot products, class-token/multimodal packing, packed-shape (PS) handling, and reversible split/merge workflows.
  • sub-skills/framework-integrations/: use optional backend dispatch, Array API functions, framework layers, EinMix, torch scripting/compilation notes, and missing optional dependency diagnostics.
  • sub-skills/repo-development/: use maintainer guidance for focused tests, backend selection, EINOPS_TEST_BACKENDS, docs/notebook checks, formatting/type checks, CI matrix interpretation, and release/deploy boundaries.

Core Decision Points

  • If the user wants a readable replacement for reshape, view, permute, transpose, pooling, tiling, broadcasting, or shape parsing, start with tensor-operations.
  • If the operation is a mathematical contraction or a dot product with named axes, use named-einsum-and-packing and remember that einops.einsum takes tensors first and the pattern last.
  • If multiple tensors must be concatenated and later split without losing their heterogeneous middle dimensions, use pack/unpack rather than manual slices.
  • If the transform belongs inside a neural-network model definition, serialized layer, Keras model, Flax module, or Torch Sequential, use framework-integrations.
  • If the task is about changing the repository, running native tests, or building docs, use repo-development instead of package-usage routes.

Shared References

Safe Operating Rules

  • Keep runtime guidance self-contained. Do not require future agents to open or run original repository notebooks, tests, docs, or scripts to complete normal package-usage tasks.
  • Treat optional frameworks as optional. A CPU NumPy smoke does not prove CUDA, ROCm, MPS, TensorFlow, JAX, or PyTorch runtime behavior.
  • Prefer explicit semantic axis names (batch, channel, height, width) in examples that explain user intent.
  • When decomposing axes such as (height h2), supply or validate lengths that cannot be inferred safely.
  • For maintainer commands that can mutate an environment or docs tree, use the repo-development sub-skill's dry-run helpers before executing.

Refresh Triggers

Read references/repo-provenance.md before deciding this skill is current for a checkout. Refresh the repo skill if the package version, public API exports, pattern grammar, backend list, layer modules, native test runner, docs scripts, CI matrix, or relevant evidence paths changed since the recorded snapshot.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3392026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고