[doc] add deepspeed citation and copyright (#2996)

* [doc] add deepspeed citation and copyright

* [doc] add deepspeed citation and copyright

* [doc] add deepspeed citation and copyright
This commit is contained in:
ver217
2023-03-04 20:08:11 +08:00
committed by GitHub
parent e0a1c1321c
commit 823f3b9cf4
19 changed files with 336 additions and 289 deletions

View File

@@ -1,7 +1,12 @@
import torch
# This code has been adapted from the DeepSpeed library.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import functools
from typing import Optional
import torch
def substitute_init_recursively(cls, func, visited: set):
for subcls in cls.__subclasses__():