Skip to content

Instantly share code, notes, and snippets.

View davebulaval's full-sized avatar

David Beauchemin davebulaval

View GitHub Profile
@pjosalgado
pjosalgado / check_docker_container.sh
Last active May 25, 2023 17:33 — forked from ekristen/check_docker_container.sh
Bash Script to Check the Status of a Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: [email protected]
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Edited by: Paulo José de Oliveira Salgado
# Email: [email protected]
@jeasinema
jeasinema / weight_init.py
Last active July 30, 2024 16:35
A simple script for parameter initialization for PyTorch
#!/usr/bin/env python
# -*- coding:UTF-8 -*-
import torch
import torch.nn as nn
import torch.nn.init as init
def weight_init(m):
'''