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

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import array
import reprlib

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import os
import re
import subprocess

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

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from mlx.nn.layers.base import Module
from mlx.nn.layers.activations import (
GELU,

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import textwrap
from typing import Any, Callable, List, Union, Optional

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from mlx.nn.layers.base import Module

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
from typing import Union

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx
from mlx.nn.layers.base import Module

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx
from mlx.nn.layers.base import Module

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
from typing import Optional

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
from typing import Optional

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from typing import Callable
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import math
from typing import List

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.

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <cstdint>
#include <cstring>
#include <sstream>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <sstream>
#include <pybind11/pybind11.h>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <numeric>
#include <sstream>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <pybind11/pybind11.h>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <pybind11/pybind11.h>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#include "mlx/backend/metal/metal.h"

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#define STRINGIFY(x) #x

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <numeric>
#include <ostream>
#include <variant>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <sstream>
#include <pybind11/pybind11.h>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#include <pybind11/functional.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

View File

@@ -1,3 +1,5 @@
// Copyright © 2023 Apple Inc.
#pragma once
#include <numeric>
#include <variant>

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import os
import unittest

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import operator
import unittest
from itertools import permutations

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
from functools import partial
import unittest

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import itertools

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import os
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
from itertools import permutations, combinations

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx

View File

@@ -1,3 +1,5 @@
# Copyright © 2023 Apple Inc.
import unittest
import mlx.core as mx