update copyright

This commit is contained in:
shumingma 2022-11-23 08:36:55 -08:00
parent ede048831f
commit 65fe50f466
41 changed files with 111 additions and 1 deletions

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import models
import tasks

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import models
import tasks

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import argparse
import importlib
import os

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import math
import logging
from typing import Any, Dict, List, Optional

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import argparse
import importlib
import os

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import math
import re
import sys

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import glob
import os
import torch

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import os
import gzip
import numpy as np

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import models
import tasks

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import torch
import warnings
from fairseq.utils import multi_tensor_l2norm_available, multi_tensor_total_norm

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
from io import open
from setuptools import find_packages, setup

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import pytest
from torchscale.architecture.config import DecoderConfig
from torchscale.architecture.decoder import Decoder

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import pytest
from torchscale.architecture.config import EncoderConfig
from torchscale.architecture.encoder import Encoder

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import pytest
from torchscale.architecture.config import EncoderDecoderConfig
from torchscale.architecture.encoder_decoder import EncoderDecoder

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -1,4 +1,5 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
class EncoderConfig(object):
def __init__(self, **kwargs):

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import math
import torch
import torch.nn as nn

View File

@ -1,3 +1,5 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import math
import torch

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import torch.nn as nn
from torchscale.architecture.encoder import Encoder
from torchscale.architecture.decoder import Decoder

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import torch.nn as nn
from torchscale.component.multihead_attention import MultiheadAttention
from torchscale.component.multiway_network import MultiwayNetwork

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
from timm.models.layers import drop_path
import torch.nn as nn

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import torch
import torch.nn as nn
import torch.nn.functional as F

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import torch
import torch.nn as nn
import torch.nn.functional as F

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import math
import torch
from torch import nn

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import copy
import torch
import torch.nn as nn

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import math
import torch
import torch.nn as nn

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the

View File

@ -1,3 +1,6 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]
import torch
import torch.nn as nn
from torchscale.architecture.encoder import Encoder

View File

@ -0,0 +1,2 @@
# Copyright (c) 2022 Microsoft
# Licensed under The MIT License [see LICENSE for details]