Skip to main content

sf-tensor

Minimal start of a Python package for functionality related to the services offered by SF Tensor. This will include functionality to interact with SF Tensor's API endpoints for metric logging and more.

Updates will arrive in the next days and weeks ;)

Installation

Install with:

pip install sf-tensor

Usage

from sf_tensor import logAccuracy
import torch
from torch import nn

model = nn.Sequential(nn.Linear(4, 2))
opt = torch.optim.SGD(model.parameters(), lr=0.1)
loss_fn = nn.CrossEntropyLoss()
x = torch.randn(64, 4)
y = torch.randint(0, 2, (64,))
for _ in range(5):
    opt.zero_grad(); o = model(x); (loss_fn(o, y)).backward(); opt.step()
    logAccuracy((o.argmax(1) == y).float().mean().item())

Metadata

Release files for sf-tensor 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sf-tensor 0.0.1
File Size Uploaded Provenance Actions
sf_tensor-0.0.1.tar.gz 2.2 kB Without provenance Details for sf_tensor-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sf-tensor 0.0.1
File Interpreter ABI Platform Actions
sf_tensor-0.0.1-py3-none-any.whl Python 3 none any Details for sf_tensor-0.0.1-py3-none-any.whl

Total release size: 5.8 kB

Release files / sf_tensor-0.0.1.tar.gz

Download URL sf_tensor-0.0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d5e659f7fbe3128e2790f1811253af3545353de1944b04f25bbefd2661583c7d
BLAKE2b-256 checksum
How to use checksums
7b7b9b883394acbde1fef6d21c133a75763ee9a0cb5fee427c5aa44e79a0976f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release files / sf_tensor-0.0.1-py3-none-any.whl

Download URL sf_tensor-0.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
824da8b21735b3447a45375b9f610ae0a2f0c87a8eba187784dbffd7ac2e0f1d
BLAKE2b-256 checksum
How to use checksums
f8e597dc650ee07bf98adb0ca1b65ff419eb36fb252cac0d6f8a536dd70c3ea9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Security for sf-tensor 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page