agentsclimarketplace

Neural network layer metadata interpretation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/neural-network-layer-metadata-interpretation

Use when after deploying a TensorFlow-backed classification service, you need to verify that the model's input layer names ('input_2048' and 'input_4096') and output layer name ('output') are correctly configured before constructing inference requests.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill neural-network-layer-metadata-interpretation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.8 KB, 850 tokens by cl100k_base, as published. Nobody here has run it

neural-network-layer-metadata-interpretation

Summary

Retrieve and validate neural network model layer metadata (input/output layer names and shapes) from a TensorFlow Serving endpoint to confirm correct model deployment and identify the correct input and output tensors for downstream inference tasks.

When to use

After deploying a TensorFlow-backed classification service, you need to verify that the model's input layer names ('input_2048' and 'input_4096') and output layer name ('output') are correctly configured before constructing inference requests. This is especially critical when layer names are hard-coded in client code or when model versions may have changed.

When NOT to use

  • The model layer names have already been verified in a prior deployment step within the same workflow run.
  • You are working with a pre-built, frozen inference graph where layer names are already hard-coded and immutable.
  • The TensorFlow Serving instance is not accessible or metadata endpoint is not available.

Inputs

  • TensorFlow Serving model metadata endpoint URL (e.g., /model/metadata)
  • HTTP client (e.g., Python requests library, curl)

Outputs

  • Parsed JSON response containing model layer schema
  • Extracted input layer names (e.g., 'input_2048', 'input_4096')
  • Extracted output layer name (e.g., 'output')
  • Validation report confirming layer name correctness

How to apply

Query the TensorFlow Serving metadata endpoint (typically /model/metadata) to retrieve the deployed model's layer structure and naming convention. Parse the JSON response to extract input layer names and output layer names. Cross-check that input layers are named 'input_2048' and 'input_4096' and that the output layer is named 'output'; if any names differ, the code must be updated to match. This validation step should occur before attempting to construct and send inference requests to the /classify endpoint, as mismatched layer names will cause request failures or silent output errors.

Related tools

  • TensorFlow Serving (HTTP service that exposes model metadata and inference endpoints; provides /model/metadata endpoint to query layer names and shapes)
  • Docker (Containerization platform used to run TensorFlow Serving alongside the NP Classifier application) — https://github.com/mwang87/NP-Classifier
  • Python (Client language for constructing HTTP requests to the metadata endpoint and parsing JSON responses)

Examples

curl http://localhost:8501/v1/models/npc_model/metadata | python -m json.tool | grep -A 5 '"input_2048\|"input_4096\|"output')

Evaluation signals

  • HTTP response status is 200 and response body is valid JSON
  • Parsed response contains an 'input_2048' layer definition
  • Parsed response contains an 'input_4096' layer definition
  • Parsed response contains an 'output' layer definition
  • Layer definitions include shape and dtype metadata that matches expected model architecture

Limitations

  • Layer names are tightly coupled to the specific TensorFlow model version; if the model is retrained or replaced, layer names may change and code must be updated.
  • The metadata endpoint is only available when TensorFlow Serving is running and properly configured.
  • Metadata retrieval does not validate that the model weights or behavior are correct—only that the schema matches expectations.

Evidence

  • [readme] We pass through tensorflow serving at this url: /model/metadata: "We pass through tensorflow serving at this url:

/model/metadata"

  • [readme] Input layer names are 'input_2048' and 'input_4096'; output is 'output': "Input layers' names should be "input_2048" and "input_4096"

Output layer's name should be "output""

  • [readme] If model input names change, code must be updated: "If the model input names change, then we need to change it in the code"
  • [intro] Model input layer names are documented as required validation step: "Model input layer names are 'input_2048' and 'input_4096'; output layer name is 'output'"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.