Skip to content

Instantly share code, notes, and snippets.

View crcrpar's full-sized avatar

Masaki Kozuki crcrpar

  • NVIDIA
  • Tokyo
  • 10:53 (UTC +09:00)
View GitHub Profile
@crcrpar
crcrpar / bash_strict_mode.md
Created April 1, 2022 22:04 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@crcrpar
crcrpar / how-gradients-are-accumulated-in-real.ipynb
Created March 21, 2021 00:05
how-gradients-are-accumulated-in-real.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@crcrpar
crcrpar / how-gradients-are-accumulated-in-real.ipynb
Created March 21, 2021 00:03
how-gradients-are-accumulated-in-real.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/torchvision/datasets/mnist.py b/torchvision/datasets/mnist.py
index e87cd46e..bfd59914 100644
--- a/torchvision/datasets/mnist.py
+++ b/torchvision/datasets/mnist.py
@@ -131,6 +131,11 @@ class MNIST(VisionDataset):
def class_to_idx(self) -> Dict[str, int]:
return {_class: i for i, _class in enumerate(self.classes)}
+ def _check_raw_data_exists(self) -> bool:
+ return all([
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/optuna/integration/allennlp.py b/optuna/integration/allennlp.py
index 872ed56f..5e8c7d7c 100644
--- a/optuna/integration/allennlp.py
+++ b/optuna/integration/allennlp.py
@@ -383,7 +383,7 @@ class AllenNLPPruningCallback(TrainerCallback):
See `the example <https://github.com/optuna/optuna/blob/master/
examples/allennlp/allennlp_simple.py>`__
- if you want to add a proning callback which observes a metric.
+ if you want to add a pruning callback which observes a metric.