SPC j
- this is for jump to some place.SPC j i
- spacemacs/helm-jump-in-buffer- '%' - (vim command) jump to the corresponding parenthesis
SPC ;
- commenting operation (provided by evli-nerd-commenter )c s <old-textobject> <new-textobject>
- change parenthesis character (provided by evil-surroundSPC k
- enter lisp-state (easy to move over parenthesis)SPC x i c
- string-inflection (lower camelCase)SPC x i u
- string-inflection (lower snake_case)C-c C-w C-c
- eyebrowse-create-wiondow-config (eyebrowse)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, lib, fetchurl | |
, dpkg | |
, unzip | |
, alsa-lib | |
, at-spi2-atk | |
, at-spi2-core | |
, atk | |
, cairo | |
, cups | |
, dbus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calc_loss(self, trajectory): | |
'''take a trajectory to calculate losses''' | |
Loss = namedtuple('loss', ['summary', 'reconst_term', 'kl_term']) | |
images, best_pix_ind = trajectory[0] | |
obs_0 = images[0][0].to(self.device) | |
posterior = self.encoder(obs_0) | |
prev_state = posterior.rsample() | |
# loss terms: |