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
#include <stdlib.h> | |
#include <cblas.h> | |
int const M = 7; | |
int const K = 1026; | |
int const N = 1026; | |
int main() { | |
float const *A = (float *) calloc(M * K, sizeof(float)); |
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
diff --git a/thinc/backends/__init__.py b/thinc/backends/__init__.py | |
index ba4daaa8..1b39deb3 100644 | |
--- a/thinc/backends/__init__.py | |
+++ b/thinc/backends/__init__.py | |
@@ -79,6 +79,10 @@ def _import_extra_cpu_backends(): | |
from thinc_apple_ops import AppleOps | |
except ImportError: | |
pass | |
+ try: | |
+ from thinc_mkl_ops import MKLOps |
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
--- training/pt_core_news_lg_rule/model-best/config.cfg 2021-11-22 10:28:51.610899763 +0100 | |
+++ training-edit-tree-bench/pt_core_news_lg/model-best/config.cfg 2021-11-21 17:40:53.559460807 +0100 | |
@@ -12,7 +12,7 @@ | |
[nlp] | |
lang = "pt" | |
-pipeline = ["tok2vec","morphologizer","parser","senter","attribute_ruler","lemmatizer","ner"] | |
+pipeline = ["tok2vec","morphologizer","parser","senter","attribute_ruler","edit_tree_lemmatizer","ner"] | |
disabled = ["parser","senter","attribute_ruler","ner"] | |
before_creation = null |
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
from typing import Optional, Callable, Any, Tuple | |
from ..model import Model | |
from ..util import use_nvtx_range | |
def with_nvtx_range( | |
layer: Model, | |
name: Optional[str] = None, | |
*, |
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
Rough procedure for updating cargo hashes. Warning: this still requires a lot | |
of manual work to cover all bases. Based on: | |
https://github.com/NixOS/nixpkgs/pull/112764/commits/2650d5d2b8c19844224f8b368887153e2f18fdae | |
# Invalidate all hashes | |
rg -l "cargoHash" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoHash = "..../cargoHash = "sha256-1234/g' | |
rg -l "cargoSha256" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoSha256 = "[^s].../cargoSha256 = "1234/g' | |
rg -l "cargoSha256" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoSha256 = "sha256-..../cargoSha256 = "sha256-1234/g' |
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 | |
from torch import nn | |
class TensorModule(nn.Module): | |
def __init__(self, tensors): | |
super(TensorModule, self).__init__() | |
for tensor_name, tensor in tensors.items(): | |
setattr(self, tensor_name, nn.Parameter(tensor)) |
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
{ stdenv | |
, fetchFromGitLab | |
, autoreconfHook | |
, pkg-config | |
, intltool | |
, itstool | |
, mono | |
, yelp-tools | |
, wrapGAppsHook | |
, enchant1 |
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
diff --git a/pkgs/development/libraries/utf8cpp/default.nix b/pkgs/development/libraries/utf8cpp/default.nix | |
index f42baa2576a..a2aac1241cd 100644 | |
--- a/pkgs/development/libraries/utf8cpp/default.nix | |
+++ b/pkgs/development/libraries/utf8cpp/default.nix | |
@@ -8,17 +8,20 @@ stdenv.mkDerivation rec { | |
owner = "nemtrif"; | |
repo = "utfcpp"; | |
rev = "v${version}"; | |
- sha256 = "1d5p9l27mxhsmm4zlxjsbxngsmr5yxrzi66x550bf5g92sj52ffc"; | |
+ fetchSubmodules = true; |
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 math | |
import random | |
FAC3 = 6. | |
FAC5 = 120. | |
FAC7 = 5040. | |
def poorMenSine(x): | |
return x - (x ** 3 / FAC3) + (x ** 5 / FAC5) - (x ** 7 / FAC7) |
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
--- /nix/store/nbkx2qghlh05dscldwxbrbbjm0jl2xws-bert-base-german-cased-vocab.txt 1970-01-01 01:00:01.000000000 +0100 | |
+++ bert-base-german-cased-vocab.txt 2020-04-16 11:38:36.000000000 +0200 | |
@@ -121,7 +121,7 @@ | |
ver | |
##ls | |
Z | |
-( | |
+[unused_punctuation4] | |
##ir | |
Die |