Skip to content

gilml/tensor-systems-specs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tensor Systems — Specs

Reference package for tensor performance diagnostics, shape contracts, and device management in PyTorch model pipelines.

Install (development mode)

pip install -e .

Usage

import tensor_systems_specs as tss
import torch

x = torch.rand((64, 3, 224, 224))
tss.trace_shape("Image batch", x)

Reproducibility

import tensor_systems_specs as tss

tss.set_seed(42)

Current Modules

  1. Execution timing utilities — measure execution time for tensor operations or functions.
  2. Shape tracing — log shape, device, and dtype information.
  3. Device checks — ensure tensors are on the correct device (CPU/GPU) for computation.
  4. Reproducibility — set seeds across random, numpy, and torch for repeatable experiments.

About

Tensor performance diagnostics, shape contracts, and device utilities for model pipelines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages