code stringlengths 3 6.57k |
|---|
PixelEncoder(nn.Module) |
super() |
__init__() |
nn.ModuleList() |
nn.ModuleList() |
zip(in_channels, filters) |
self.convs.append(conv) |
self.conv_bns.append(nn.BatchNorm2d(out_channel) |
nn.Linear(self._get_linear_input_size() |
nn.BatchNorm1d(feature_size) |
_get_linear_input_size(self) |
torch.rand((1, ) |
torch.no_grad() |
self._conv_encode(x) |
view(1, -1) |
_conv_encode(self, x) |
range(len(self.convs) |
self.activation(self.convs[i](h) |
forward(self, x) |
self._conv_encode(x) |
self.activation(self.fc(h.view(h.shape[0], -1) |
self.fc_bn(h) |
PixelEncoderWithAction(PixelEncoder) |
super() |
_get_linear_input_size(self) |
super() |
_get_linear_input_size() |
forward(self, x, action) |
self._conv_encode(x) |
F.one_hot(action.view(-1) |
long() |
float() |
torch.cat([h.view(h.shape[0], -1) |
self.activation(self.fc(h) |
self.fc_bn(h) |
VectorEncoder(nn.Module) |
super() |
__init__() |
nn.ModuleList() |
nn.ModuleList() |
zip(in_units, hidden_units) |
self.fcs.append(nn.Linear(in_unit, out_unit) |
self.bns.append(nn.BatchNorm1d(out_unit) |
forward(self, x) |
range(len(self.fcs) |
self.activation(self.fcs[i](h) |
VectorEncoderWithAction(VectorEncoder) |
super() |
forward(self, x, action) |
F.one_hot(action.view(-1) |
long() |
float() |
torch.cat([x, action], dim=1) |
super() |
forward(x) |
Updater(object) |
update(self, app) |
utils.translation(32021) |
str(int(app["estimated_seconds_remaining"] / 60 + 1) |
utils.translation(32022) |
int((float(app["bytes_downloaded"]) |
float(app["bytes_to_download"]) |
utils.translation(32023) |
utils.translation(app_state.state(app["state"]) |
str(app["state"]) |
status(service, params) |
int(params.get('id') |
urllib.unquote_plus(params.get('username') |
urllib.unquote_plus(params.get('hostname') |
xbmcgui.DialogProgress() |
progress.create(utils.translation(32020) |
Updater() |
progress.iscanceled() |
xbmc.sleep(100) |
update.update(service.update_app((hostname, username) |
progress.update(update.percent, update.title1, "", "") |
progress.close() |
Copyright (c) |
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__) |
callError(code=1, cmd='', cwd='', stdout='', stderr='') |
subprocess2.CalledProcessError(code, cmd, cwd, stdout, stderr) |
callError(1) |
MakeNamedTemporaryFileMock(expected_content) |
NamedTemporaryFileMock(object) |
__init__(self, *args, **kwargs) |
__enter__(self) |
__exit__(self, _type, _value, _tb) |
write(self, content) |
close(self) |
ChangelistMock(object) |
__init__(self, **kwargs) |
GetIssue(self) |
GetDescription(self, force=False) |
UpdateDescription(self, desc, force=False) |
PresubmitMock(object) |
__init__(self, *args, **kwargs) |
should_continue() |
GitCheckoutMock(object) |
__init__(self, *args, **kwargs) |
reset() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.