Skip to main content

This Python module provides a collection of utility functions designed for advanced tensor manipulation using PyTorch. It includes functions for applying operations along specific dimensions, mapping values to new ranges, and generating linearly spaced tensors, among others.

Project description

PyTorch Extension

Overview

This Python module provides a collection of utility functions designed for advanced tensor manipulation using PyTorch. It includes functions for applying operations along specific dimensions, mapping values to new ranges, and generating linearly spaced tensors, among others.

Functions

buffer(tensor, persistent)

Used in the nn.Module, for registering a buffer in an assignment form.

apply_from_dim(func, tensor, dim, otypes)

Applies a given function to a specified dimension of a tensor.

map_range(tensor, interval, dim, dtype, scalar_default, eps)

Maps tensor values to a specified range.

map_ranges(tensor, intervals, dim=None, dtype, scalar_default, eps)

Maps tensor values to multiple specified ranges.

invert(tensor)

Inverts the values in the tensor across its dimensions.

nn.refine_model(model)

Extracts the underlying model from a DataParallel wrapper, if present.

nn.Buffer(tensor, persistent)

The class that used in the buffer(tensor, persistent).

Usage

These functions are intended for use with PyTorch tensors in deep learning and numerical computation contexts. Each function provides additional control over tensor operations, particularly in high-dimensional data manipulation and preprocessing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchflint-0.0.1b11.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchflint-0.0.1b11-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file torchflint-0.0.1b11.tar.gz.

File metadata

  • Download URL: torchflint-0.0.1b11.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for torchflint-0.0.1b11.tar.gz
Algorithm Hash digest
SHA256 3bb3c63e8aaadf366de6cd3d1f42a316ab0b897742d2d597e05772781d55b4ab
MD5 31bc1dc038c1e4ec60fe11bc5c9b47b1
BLAKE2b-256 20e8ed9e62486e84302a03605c9e753f9e31ce1e1fb1bb93d3a9b8d60608c106

See more details on using hashes here.

File details

Details for the file torchflint-0.0.1b11-py3-none-any.whl.

File metadata

  • Download URL: torchflint-0.0.1b11-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for torchflint-0.0.1b11-py3-none-any.whl
Algorithm Hash digest
SHA256 4b259f9a1e83cc07d25bb5527a2cc1121462a9c1c385433fb02a7347e94ca834
MD5 4510bfead8a7cbfda453bfbfcd7962b5
BLAKE2b-256 a442abe65cda9facb214e279c46d058280ba3093fab59c7d2eaeb99e9a3d5504

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page