Skip to main content

Liquid Net - Pytorch

Project description

Multi-Modality

LiquidNet

This is a simple implementation of the Liquid net official repo translated into pytorch for simplicity. Find the original repo here:

Install

pip install liquid-net

Usage

import torch
from liquidnet.main import LiquidNet

# Create an LiquidNet with a specified number of units
num_units = 64
ltc_cell = LiquidNet(num_units)

# Generate random input data with batch size 4 and input size 32
batch_size = 4
input_size = 32
inputs = torch.randn(batch_size, input_size)

# Initialize the cell state (hidden state)
initial_state = torch.zeros(batch_size, num_units)

# Forward pass through the LiquidNet
outputs, final_state = ltc_cell(inputs, initial_state)

# Print the shape of outputs and final_state
print("Outputs shape:", outputs.shape)
print("Final state shape:", final_state.shape)

Citation

@article{DBLP:journals/corr/abs-2006-04439,
  author       = {Ramin M. Hasani and
                  Mathias Lechner and
                  Alexander Amini and
                  Daniela Rus and
                  Radu Grosu},
  title        = {Liquid Time-constant Networks},
  journal      = {CoRR},
  volume       = {abs/2006.04439},
  year         = {2020},
  url          = {https://arxiv.org/abs/2006.04439},
  eprinttype    = {arXiv},
  eprint       = {2006.04439},
  timestamp    = {Fri, 12 Jun 2020 14:02:57 +0200},
  biburl       = {https://dblp.org/rec/journals/corr/abs-2006-04439.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}

License

MIT

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

liquidnet-0.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

liquidnet-0.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file liquidnet-0.0.1.tar.gz.

File metadata

  • Download URL: liquidnet-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

File hashes

Hashes for liquidnet-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5c7f61c19ea183c7cedd6b7104b39201ce34d85cbc5df062681b0d2939a123cb
MD5 37456b78c9b7b48c59815e83eb28e967
BLAKE2b-256 5ef6794af94338c78e1a0dc4f3f0ac8afb178a6c14e4f479f63ff113a52b541c

See more details on using hashes here.

File details

Details for the file liquidnet-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: liquidnet-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

File hashes

Hashes for liquidnet-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7b0717151349247b1eb249c7af6e28fbd7971ad818d972ef8b51f451ae678c6
MD5 8726224b2d8f3b79c96afaecb58b15d6
BLAKE2b-256 2f460c6b3c0b3df18d0b2930b8c05a49f888b344e33f4446470e87bfe0637d82

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