This file contains 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
import torch | |
import time | |
def _send(buffer_size, dest): | |
x = torch.zeros((buffer_size,)) | |
while True: | |
torch.distributed.send(x, dest) | |
This file contains 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
#! /bin/bash | |
#SBATCH -c 1 | |
#SBATCH --mem 1GB | |
#SBATCH --time 10:00 | |
#SBATCH -A stats | |
#SBATCH --array 0-8 | |
module load anaconda | |
conda load pytorch | |
python tutorial.py --shard $SLURM_ARRAY_TASK_ID |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
/// <summary> | |
/// Provides helpers to manually toggle validation errors. | |
/// </summary> | |
public static class ManualValidation | |
{ | |
// this dummy attached property is used as a source | |
// of the binding. | |
static readonly DependencyProperty DummyProperty = | |
DependencyProperty.RegisterAttached("DummyProperty", typeof(object), typeof(ManualValidation), new PropertyMetadata(null)); |