| AdversarialLoss |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("06eae0ae5e115c24") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
class AdversarialLoss(nn.Module):
"""
Adversarial loss
https://arxiv.org/abs/1711.10337
"""
def __init__(self, type='nsgan', target_real_label=1.0, target_fake_label=0.0):
"""
type = nsgan | lsgan | hinge
"""
super(AdversarialLoss, self).__init__()
self.type = type
self.register_buffer('real_label', torch.tensor(target_real_label))
self.register_buffer('fake_label', torch.tensor(target_fake_label))
if type == 'nsgan':
self.criterion = nn.BCELoss()
elif type == 'lsgan':
self.criterion = nn.MSELoss()
elif type == 'hinge':
self.criterion = nn.ReLU()
def __call__(self, outputs, is_real, is_disc=None):
if self.type == 'hinge':
if is_disc:
if is_real:
outputs = -outputs
return self.criterion(1 + outputs).mean()
else:
return (-outputs).mean()
else:
labels = (self.real_label if is_real else self.fake_label).expand_as(outputs)
loss = self.criterion(outputs, labels)
return loss
INIT_ARGS = {
'type': 'nsgan',
'target_real_label': 1.0,
'target_fake_label': 0.0,
}
ARGS = {
'outputs': torch.sigmoid(torch.randn(2, 4)),
'is_real': True,
'is_disc': False,
}
if __name__ == '__main__':
loss_fn = AdversarialLoss(**INIT_ARGS)
result = loss_fn(**ARGS)
print(f"Loss result: {result}")
print(f"Result type: {type(result)}")
print(f"Result shape: {result.shape if hasattr(result, 'shape') else 'scalar'}")
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 0, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| ConvWithActivation |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("135239d29145820a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 8, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
class ConvWithActivation(torch.nn.Module):
"""
SN convolution for spetral normalization conv
"""
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, activation=torch.nn.LeakyReLU(0.2, inplace=True)):
super(ConvWithActivation, self).__init__()
self.conv2d = torch.nn.Conv2d(in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias)
self.conv2d = torch.nn.utils.spectral_norm(self.conv2d)
self.activation = activation
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal_(m.weight)
def forward(self, input):
x = self.conv2d(input)
if self.activation is not None:
return self.activation(x)
else:
return x
INIT_ARGS = {
'in_channels': 3,
'out_channels': 4,
'kernel_size': 3,
'stride': 1,
'padding': 1,
'dilation': 1,
'groups': 1,
'bias': True,
'activation': torch.nn.LeakyReLU(0.2, inplace=True)
}
ARGS = {
'input': torch.randn(2, 3, 8, 8)
}
if __name__ == '__main__':
model = ConvWithActivation(**INIT_ARGS)
output = model(**ARGS)
print(f"Output shape: {output.shape}")
print(f"Expected shape: torch.Size([2, 4, 8, 8])")
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 4, dtype family float, shape (2, 4, 8, 8) — shape (2, 4, 8, 8) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| ConvWithActivation_encode |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("94b5cbe5237f7e9d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
class ConvWithActivation_encode(torch.nn.Module):
"""
SN convolution for spectral normalization conv
"""
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, activation=torch.nn.LeakyReLU(0.2, inplace=True)):
super(ConvWithActivation_encode, self).__init__()
self.conv2d = torch.nn.Conv2d(in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias)
self.conv2d = torch.nn.utils.spectral_norm(self.conv2d)
self.activation = activation
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal_(m.weight)
def forward(self, input):
x = self.conv2d(input)
if self.activation is not None:
return (self.activation(x), x)
else:
return x
INIT_ARGS = {
'in_channels': 3,
'out_channels': 4,
'kernel_size': 3,
'stride': 1,
'padding': 1,
'dilation': 1,
'groups': 1,
'bias': True,
'activation': torch.nn.LeakyReLU(0.2, inplace=True)
}
ARGS = {
'input': torch.randn(2, 3, 8, 8)
}
if __name__ == '__main__':
model = ConvWithActivation_encode(**INIT_ARGS)
output = model(**ARGS)
print(f"Output type: {type(output)}")
print(f"Output[0] shape: {output[0].shape}")
print(f"Output[1] shape: {output[1].shape}")
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| D_Net |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("fa209b1538963765") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
def spectral_norm(module, mode=True):
if mode:
return nn.utils.spectral_norm(module)
return module
class D_Net(nn.Module):
def __init__(self, in_channels, use_sigmoid=True, use_spectral_norm=True):
super(D_Net, self).__init__()
self.use_sigmoid = use_sigmoid
self.conv1 = self.features = nn.Sequential(spectral_norm(nn.Conv2d(in_channels=in_channels, out_channels=64, kernel_size=4, stride=2, padding=1, bias=not use_spectral_norm), use_spectral_norm), nn.LeakyReLU(0.2, inplace=True))
self.conv2 = nn.Sequential(spectral_norm(nn.Conv2d(in_channels=64, out_channels=128, kernel_size=4, stride=2, padding=1, bias=not use_spectral_norm), use_spectral_norm), nn.LeakyReLU(0.2, inplace=True))
self.conv3 = nn.Sequential(spectral_norm(nn.Conv2d(in_channels=128, out_channels=256, kernel_size=4, stride=2, padding=1, bias=not use_spectral_norm), use_spectral_norm), nn.LeakyReLU(0.2, inplace=True))
self.conv4 = nn.Sequential(spectral_norm(nn.Conv2d(in_channels=256, out_channels=512, kernel_size=4, stride=1, padding=1, bias=not use_spectral_norm), use_spectral_norm), nn.LeakyReLU(0.2, inplace=True))
self.conv5 = nn.Sequential(spectral_norm(nn.Conv2d(in_channels=512, out_channels=1, kernel_size=4, stride=1, padding=1, bias=not use_spectral_norm), use_spectral_norm))
def forward(self, x):
conv1 = self.conv1(x)
conv2 = self.conv2(conv1)
conv3 = self.conv3(conv2)
conv4 = self.conv4(conv3)
conv5 = self.conv5(conv4)
outputs = conv5
if self.use_sigmoid:
outputs = torch.sigmoid(conv5)
return (outputs, [conv1, conv2, conv3, conv4, conv5])
INIT_ARGS = {
'in_channels': 3,
'use_sigmoid': True,
'use_spectral_norm': True,
}
ARGS = {
'x': torch.randn(2, 3, 64, 64),
}
if __name__ == '__main__':
model = D_Net(**INIT_ARGS)
outputs, features = model(**ARGS)
print(f"Output shape: {outputs.shape}")
print(f"Number of feature maps: {len(features)}")
print(f"Feature shapes: {[f.shape for f in features]}")
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| DenseLayer |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("28816304c3e4e4bc") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 7, 5, 6) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
class DenseLayer(nn.Module):
def __init__(self, in_channels, out_channels):
super(DenseLayer, self).__init__()
self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=3 // 2)
self.relu = nn.ReLU(inplace=True)
def forward(self, x):
return torch.cat([x, self.relu(self.conv(x))], 1)
INIT_ARGS = {
'in_channels': 4,
'out_channels': 3,
}
ARGS = {
'x': torch.randn(2, 4, 5, 6),
}
if __name__ == '__main__':
layer = DenseLayer(**INIT_ARGS)
output = layer(**ARGS)
print(f"Input shape: {ARGS['x'].shape}")
print(f"Output shape: {output.shape}")
print(f"Expected output channels: {INIT_ARGS['in_channels'] + INIT_ARGS['out_channels']}")
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 4, dtype family float, shape (2, 7, 5, 6) — shape (2, 7, 5, 6) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| LateralConnect |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("7cc637107bac1c93") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 16, 16) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
class ConvWithActivation_encode(torch.nn.Module):
"""
SN convolution for spectral normalization conv
"""
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, activation=torch.nn.LeakyReLU(0.2, inplace=True)):
super(ConvWithActivation_encode, self).__init__()
self.conv2d = torch.nn.Conv2d(in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias)
self.conv2d = torch.nn.utils.spectral_norm(self.conv2d)
self.activation = activation
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal_(m.weight)
def forward(self, input):
x = self.conv2d(input)
if self.activation is not None:
return (self.activation(x), x)
else:
return x
class LateralConnect(nn.Module):
def __init__(self, inputChannels, outputChannels):
super(LateralConnect, self).__init__()
mid_channel = int(inputChannels / 2)
self.con1 = ConvWithActivation_encode(inputChannels, mid_channel, 3, 1, 1)
self.con2 = ConvWithActivation_encode(mid_channel, mid_channel, 3, 1, 1)
self.con3 = ConvWithActivation_encode(mid_channel, outputChannels, 3, 1, 1)
def forward(self, x):
x, _ = self.con1(x)
x, _ = self.con2(x)
x, _ = self.con3(x)
return x
INIT_ARGS = {
'inputChannels': 8,
'outputChannels': 4,
}
ARGS = {
'x': torch.randn(2, 8, 16, 16),
}
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 4, dtype family float, shape (2, 4, 16, 16) — shape (2, 4, 16, 16) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| PositionEmbeddingSine |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("b4ca9a91816f9d68") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
import math
class PositionEmbeddingSine(nn.Module):
"""
This is a more standard version of the position embedding, very similar to the one
used by the Attention is all you need paper, generalized to work on images.
"""
def __init__(self, num_pos_feats=64, temperature=10000, normalize=False, scale=None):
super().__init__()
self.num_pos_feats = num_pos_feats
self.temperature = temperature
self.normalize = normalize
if scale is not None and normalize is False:
raise ValueError('normalize should be True if scale is passed')
if scale is None:
scale = 2 * math.pi
self.scale = scale
def forward(self, tensor_list):
x = tensor_list
mask = torch.zeros_like(x[:, 0, :, :]).cuda()
mask = mask.bool()
assert mask is not None
not_mask = ~mask
y_embed = not_mask.cumsum(1, dtype=torch.float32)
x_embed = not_mask.cumsum(2, dtype=torch.float32)
if self.normalize:
eps = 1e-06
y_embed = y_embed / (y_embed[:, -1:, :] + eps) * self.scale
x_embed = x_embed / (x_embed[:, :, -1:] + eps) * self.scale
dim_t = torch.arange(self.num_pos_feats, dtype=torch.float32, device=x.device)
dim_t = self.temperature ** (2 * (dim_t // 2) / self.num_pos_feats)
pos_x = x_embed[:, :, :, None] / dim_t
pos_y = y_embed[:, :, :, None] / dim_t
pos_x = torch.stack((pos_x[:, :, :, 0::2].sin(), pos_x[:, :, :, 1::2].cos()), dim=4).flatten(3)
pos_y = torch.stack((pos_y[:, :, :, 0::2].sin(), pos_y[:, :, :, 1::2].cos()), dim=4).flatten(3)
pos = torch.cat((pos_y, pos_x), dim=3).permute(0, 3, 1, 2)
return (pos, mask)
INIT_ARGS = {
'num_pos_feats': 4,
'temperature': 10000,
'normalize': False,
'scale': None,
}
ARGS = {
'tensor_list': torch.randn(2, 8, 3, 5),
}
if __name__ == '__main__':
model = PositionEmbeddingSine(**INIT_ARGS)
try:
output = model(**ARGS)
print("Output shapes:", output[0].shape, output[1].shape)
except RuntimeError as e:
print(f"Expected error (CUDA not available): {e}")
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| RDB |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("0cd90b435a362538") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 5, 6) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
class DenseLayer(nn.Module):
def __init__(self, in_channels, out_channels):
super(DenseLayer, self).__init__()
self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=3 // 2)
self.relu = nn.ReLU(inplace=True)
def forward(self, x):
return torch.cat([x, self.relu(self.conv(x))], 1)
class RDB(nn.Module):
def __init__(self, in_channels, growth_rate, num_layers):
super(RDB, self).__init__()
self.layers = nn.Sequential(*[DenseLayer(in_channels + growth_rate * i, growth_rate) for i in range(num_layers)])
self.lff = nn.Conv2d(in_channels + growth_rate * num_layers, in_channels, kernel_size=1)
def forward(self, x):
return x + self.lff(self.layers(x))
INIT_ARGS = {
'in_channels': 4,
'growth_rate': 3,
'num_layers': 2,
}
ARGS = {
'x': torch.randn(2, 4, 5, 6),
}
if __name__ == '__main__':
model = RDB(**INIT_ARGS)
output = model(**ARGS)
print(f"Output shape: {output.shape}")
print(f"Expected shape: {ARGS['x'].shape}")
assert output.shape == ARGS['x'].shape, f"Shape mismatch: {output.shape} vs {ARGS['x'].shape}"
print("Test passed!")
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 4, dtype family float, shape (2, 4, 5, 6) — shape (2, 4, 5, 6) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| ResnetBlock |
Ran ran on a synthesized input |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("6d01e64cec5bf46c") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 64, 8, 12) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
def spectral_norm(module, mode=True):
if mode:
return nn.utils.spectral_norm(module)
return module
class ResnetBlock(nn.Module):
def __init__(self, dim, dilation=1, use_spectral_norm=True):
super(ResnetBlock, self).__init__()
self.conv_block = nn.Sequential(nn.ReflectionPad2d(dilation), spectral_norm(nn.Conv2d(in_channels=dim, out_channels=256, kernel_size=3, padding=0, dilation=dilation, bias=not use_spectral_norm), use_spectral_norm), nn.ReLU(True), nn.ReflectionPad2d(1), spectral_norm(nn.Conv2d(in_channels=256, out_channels=dim, kernel_size=3, padding=0, dilation=1, bias=not use_spectral_norm), use_spectral_norm))
def forward(self, x):
out = x + self.conv_block(x)
return out
INIT_ARGS = {
'dim': 64,
'dilation': 1,
'use_spectral_norm': True
}
ARGS = {
'x': torch.randn(2, 64, 8, 12)
}
if __name__ == '__main__':
model = ResnetBlock(**INIT_ARGS)
output = model(**ARGS)
print(f"Input shape: {ARGS['x'].shape}")
print(f"Output shape: {output.shape}")
print("Success!")
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 4, dtype family float, shape (2, 64, 8, 12) — shape (2, 64, 8, 12) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| CTRNet |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("4635cdc63b1df831") How it ran |
| ConvTD_SPADE_refine |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("e503b02c4552fae1") How it ran |
| ConvTE_spade |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("c15346bf36f3790c") How it ran |
| DeConvWithActivation |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("08bef43cba4a315e") How it ran |
| Downsample_connect |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("c33bbf8c045f74d5") How it ran |
| G_Net |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("8d65710b92ac9ee8") How it ran |
| ResnetBlock_Spade |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("c927665bd23c28e5") How it ran |
| SPADE |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("6c9dabcd0790d01f") How it ran |
| StructureGen |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("ac4a7e0a62602134") How it ran |
| TransformerEncoderLayer |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("8432e0f043a686c3") How it ran |
| VGG16FeatureExtractor |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("8e1316c982cfa4fe") How it ran |
| _get_activation_fn |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("b38b74ab50f7c296") How it ran |
| create_model |
Not yet run unverified (harvested, no recorded run) |
lcy0604/CTRNet/models_CTRNet.py code served (permissive licence) · get_code("a8929ba31c8b7c2b") How it ran |