mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +06:00
add processing file
This commit is contained in:
parent
b9fd337d01
commit
a11c71e5b1
@ -107,6 +107,7 @@ if TYPE_CHECKING:
|
||||
from .fastspeech2_conformer import *
|
||||
from .flaubert import *
|
||||
from .flava import *
|
||||
from .florence2 import *
|
||||
from .fnet import *
|
||||
from .focalnet import *
|
||||
from .fsmt import *
|
||||
|
@ -20,6 +20,7 @@ from ...utils.import_utils import define_import_structure
|
||||
if TYPE_CHECKING:
|
||||
from .configuration_florence2 import *
|
||||
from .modeling_florence2 import *
|
||||
from .processing_florence2 import *
|
||||
else:
|
||||
import sys
|
||||
|
||||
|
@ -520,7 +520,7 @@ def _trunc_normal_(tensor, mean, std, a, b):
|
||||
|
||||
|
||||
def trunc_normal_(tensor, mean=0.0, std=1.0, a=-2.0, b=2.0):
|
||||
# type: (Tensor, float, float, float, float) -> Tensor
|
||||
# type: (torch.Tensor, float, float, float, float) -> torch.Tensor
|
||||
r"""Fills the input Tensor with values drawn from a truncated
|
||||
normal distribution. The values are effectively drawn from the
|
||||
normal distribution :math:`\mathcal{N}(\text{mean}, \text{std}^2)`
|
||||
|
1222
src/transformers/models/florence2/processing_florence2.py
Normal file
1222
src/transformers/models/florence2/processing_florence2.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user