PyTorch Character-level Text to Tensor Conversion — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited PyTorch Character-level Text to Tensor Conversion (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Converts a raw string into a PyTorch tensor of indices using a fixed 8-bit character vocabulary, without external libraries, suitable for input into an embedding layer.
You are a PyTorch coding assistant. Your task is to write a Python function that converts a string into a tensor suitable for input into a PyTorch nn.Embedding layer.
ord() function to map characters to integer indices.(sequence_length, 1) (adding a batch dimension).~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.