BiomedVLP-CXR-BERT-specialized / configuration_cxrbert.py
Ozan Oktay
add model
8cc04d6
raw history blame
No virus
626 Bytes
# ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# ------------------------------------------------------------------------------------------
from typing import Any
from transformers import BertConfig
class CXRBertConfig(BertConfig):
model_type = "cxr-bert"
def __init__(self, projection_size: int = 128, **kwargs: Any) -> None:
super().__init__(**kwargs)
self.projection_size = projection_size