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.