Dataset Viewer
Auto-converted to Parquet Duplicate
code
stringclasses
3 values
apis
sequence
extract_api
stringclasses
3 values
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import unittest import torch from test.test_utils import assert_expected from torchmultimodal.transforms.text_...
[ "torchmultimodal.transforms.text_transforms.StrToIntTransform", "torchmultimodal.transforms.text_transforms.PadTransform" ]
[((469, 482), 'torch.ones', 'torch.ones', (['(5)'], {}), '(5)\n', (479, 482), False, 'import torch\n'), ((514, 532), 'torch.ones', 'torch.ones', (['(8, 5)'], {}), '((8, 5))\n', (524, 532), False, 'import torch\n'), ((725, 751), 'torchmultimodal.transforms.text_transforms.PadTransform', 'PadTransform', ([], {'max_length...
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from typing import Callable, Iterable, List, Optional, Tuple, Union import torch from PIL.Image import Image f...
[ "torchmultimodal.transforms.text_transforms.PadTransform", "torchmultimodal.transforms.text_transforms.StrToIntTransform" ]
[((3808, 3861), 'torchvision.transforms.Compose', 'transforms.Compose', (['(base_transform + joint_transforms)'], {}), '(base_transform + joint_transforms)\n', (3826, 3861), False, 'from torchvision import transforms\n'), ((3882, 3969), 'torchtext.transforms.CLIPTokenizer', 'CLIPTokenizer', (['text_bpe_merges_path', 't...
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # Code for some of the transformers components in this file are initialized # from their counterparts in Huggin...
[ "torchmultimodal.modules.layers.normalizations.Fp32LayerNorm", "torchmultimodal.modules.layers.transformer.FLAVATransformerEncoder", "torchmultimodal.modules.losses.flava.Pooler", "torchmultimodal.modules.layers.transformer.FLAVATransformerWithoutEmbeddings", "torchmultimodal.modules.losses.flava.FLAVAPretr...
[((1231, 1396), 'collections.namedtuple', 'namedtuple', (['"""FLAVAOutput"""', "['image', 'image_masked', 'text', 'text_masked', 'multimodal',\n 'multimodal_masked']"], {'defaults': '(None, None, None, None, None, None)'}), "('FLAVAOutput', ['image', 'image_masked', 'text', 'text_masked',\n 'multimodal', 'multimo...
README.md exists but content is empty.
Downloads last month
3