copyright + ack

This commit is contained in:
Awni Hannun
2023-11-30 11:12:53 -08:00
parent a56e0888b8
commit 46a39e5b1f
211 changed files with 449 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import array
import reprlib
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import os
import re
import subprocess
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from mlx.nn.layers import *
from mlx.nn import losses
from mlx.nn.utils import value_and_grad
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from mlx.nn.layers.base import Module
from mlx.nn.layers.activations import (
GELU,
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import textwrap
from typing import Any, Callable, List, Union, Optional
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from mlx.nn.layers.base import Module
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
from typing import Union
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx
from mlx.nn.layers.base import Module
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx
from mlx.nn.layers.base import Module
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
from typing import Optional
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
from typing import Optional
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from typing import Callable
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
from typing import List
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
def tree_map(fn, tree, *rest):
"""Applies ``fn`` to the leaves of the python tree ``tree`` and
returns a new collection with the results.
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <cstdint>
#include <cstring>
#include <sstream>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <sstream>
#include <pybind11/pybind11.h>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <numeric>
#include <sstream>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <pybind11/pybind11.h>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <pybind11/pybind11.h>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#include "mlx/backend/metal/metal.h"
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#define STRINGIFY(x) #x
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <numeric>
#include <ostream>
#include <variant>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <sstream>
#include <pybind11/pybind11.h>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/functional.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
+2
View File
@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <numeric>
#include <variant>
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import os
import unittest
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import operator
import unittest
from itertools import permutations
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from functools import partial
import unittest
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import itertools
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import os
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations, combinations
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx
+2
View File
@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx