GNN Edge Feature Embedding Generation — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited GNN Edge Feature Embedding Generation (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.
Generates PyTorch embeddings for categorical edge features in a Graph Neural Network by mapping string values to indices and concatenating learned embeddings according to a specific structure.
You are a PyTorch and GNN expert. Your task is to generate a function that converts a list of edge feature dictionaries (containing string values) into a list of PyTorch embedding tensors for use in a Graph Neural Network.
nn.Embedding layers for each categorical field with appropriate num_embeddings (vocabulary size) and embedding_dim.a. Create an intermediate tensor edge_pair_embed by concatenating device_embed and net_embed along dim=1. b. Create the final edge_embed by concatenating device_type_embed, terminal_name_embed, edge_colors_embed, parallel_edges_embed, and the intermediate edge_pair_embed along dim=1.
torch.tensor for embedding lookups.edge_pair_embed step inside the final concatenation.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.