mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-18 18:28:12 +08:00
copyright + ack
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import array
|
||||
import reprlib
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
|
@@ -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
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
from mlx.nn.layers.base import Module
|
||||
from mlx.nn.layers.activations import (
|
||||
GELU,
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import math
|
||||
|
||||
import mlx.core as mx
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import textwrap
|
||||
from typing import Any, Callable, List, Union, Optional
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
from mlx.nn.layers.base import Module
|
||||
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import math
|
||||
from typing import Union
|
||||
|
||||
|
@@ -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
|
||||
|
||||
import mlx.core as mx
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import math
|
||||
|
||||
import mlx.core as mx
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import math
|
||||
from typing import Optional
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import mlx.core as mx
|
||||
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
from typing import Callable
|
||||
|
||||
import mlx.core as mx
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
import math
|
||||
from typing import List
|
||||
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user