Skip to main content

GenAI

Project description

GAN Framework

Generator

Generator must have:

    def forward(self, x, return_q=True):
        """x - images [NCHW]
        return_q - if True, return `r` (recons images [NCHW]),
        and optional `vqres` (quantized info)
        """
        ...
        return r, vqres if return_q else r

VQRes has definition:

VQRes = namedtuple('VQRes', [
    'quantized',
    'indices',
    'entro_mean',
    'mean_entro',
    'entro_loss',
    'commit_loss',
    'cdbook_loss'
])

Discriminator

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

torch_genai-0.0.1.dev1-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

Details for the file torch_genai-0.0.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for torch_genai-0.0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fbd004218b7d82ef1b45b98030eb0e71758e922631d98d4ae64e5d4f06abeaf
MD5 9df583ef6993061ad99499fc32739ac7
BLAKE2b-256 2d5d8b589c0a73784d2659d4d1b1162160d385d933e426741e72e4d00532191c

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