Skip to content

Instantly share code, notes, and snippets.

View ktakayama's full-sized avatar
:octocat:

Kyosuke Takayama ktakayama

:octocat:
View GitHub Profile
@ktakayama
ktakayama / .textlintrc
Last active July 19, 2021 03:27
efm-langserver with textlint
{
"rules": {
"preset-ja-technical-writing": {
"sentence-length": false,
"max-comma": false,
"max-ten": false,
"arabic-kanji-numbers": false,
"ja-no-mixed-period": false,
"no-doubled-joshi": false,
"no-exclamation-question-mark": false,
diff --git a/environment-mac.yaml b/environment-mac.yaml
index d923d56..c8a0a8e 100644
--- a/environment-mac.yaml
+++ b/environment-mac.yaml
@@ -3,14 +3,14 @@ channels:
- pytorch
- defaults
dependencies:
- - python=3.8.5
- - pip=20.3
--- functional.py_ 2022-08-23 17:07:29.000000000 +0900
+++ functional.py 2022-08-23 17:07:31.000000000 +0900
@@ -2506,9 +2506,9 @@ def layer_norm(
"""
if has_torch_function_variadic(input, weight, bias):
return handle_torch_function(
- layer_norm, (input, weight, bias), input, normalized_shape, weight=weight, bias=bias, eps=eps
+ layer_norm, (input.contiguous(), weight, bias), input, normalized_shape, weight=weight, bias=bias, eps=eps
)
- return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)