Spaces:
Runtime error
Runtime error
File size: 765 Bytes
f670afc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, check out LICENSE.md
import torch.nn as nn
from imaginaire.layers import LinearBlock
class Generator(nn.Module):
r"""Dummy generator.
Args:
gen_cfg (obj): Generator definition part of the yaml config file.
data_cfg (obj): Data definition part of the yaml config file.
"""
def __init__(self, gen_cfg, data_cfg):
super(Generator, self).__init__()
self.dummy_layer = LinearBlock(1, 1)
pass
def forward(self, data):
r"""Dummy Generator forward.
Args:
data (dict):
"""
return
|