Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
5c1cda9d
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "58faa7b82472a712b95453382bff73ee917a06d0"
Unverified
Commit
5c1cda9d
authored
May 12, 2021
by
Suraj Patil
Committed by
GitHub
May 12, 2021
Browse files
fix example in config doc (#11696)
parent
77f4c46b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/transformers/models/clip/configuration_clip.py
src/transformers/models/clip/configuration_clip.py
+7
-8
No files found.
src/transformers/models/clip/configuration_clip.py
View file @
5c1cda9d
...
@@ -224,15 +224,14 @@ class CLIPConfig(PretrainedConfig):
...
@@ -224,15 +224,14 @@ class CLIPConfig(PretrainedConfig):
outputs. Read the documentation from :class:`~transformers.PretrainedConfig` for more information.
outputs. Read the documentation from :class:`~transformers.PretrainedConfig` for more information.
Args:
Args:
projection_dim: (:obj:`int`, `optional`, defaults to 512):
text_config_dict (:obj:`dict`, `optional`):
Dictionary of configuration options used to initialize :class:`~transformers.CLIPTextConfig`.
vision_config_dict (:obj:`dict`, `optional`):
Dictionary of configuration options used to initialize :class:`~transformers.CLIPVisionConfig`.
projection_dim (:obj:`int`, `optional`, defaults to 512):
Dimentionality of text and vision projection layers.
Dimentionality of text and vision projection layers.
kwargs (`optional`):
kwargs (`optional`):
Dictionary of keyword arguments. Notably:
Dictionary of keyword arguments.
- **text_config** (:class:`~transformers.CLIPTextConfig`, `optional`) -- An instance of a configuration
object that defines the text model config.
- **vision_config** (:class:`~transformers.CLIPVisionConfig`, `optional`) -- An instance of a
configuration object that defines the vision model config.
"""
"""
model_type
=
"clip"
model_type
=
"clip"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment