File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2020)
2121from keras_nlp .models .albert .albert_preprocessor import AlbertPreprocessor
2222from keras_nlp .models .albert .albert_tokenizer import AlbertTokenizer
23+ from keras_nlp .models .backbone import Backbone
2324from keras_nlp .models .bart .bart_backbone import BartBackbone
2425from keras_nlp .models .bart .bart_preprocessor import BartPreprocessor
2526from keras_nlp .models .bart .bart_seq_2_seq_lm import BartSeq2SeqLM
130131from keras_nlp .models .roberta .roberta_tokenizer import RobertaTokenizer
131132from keras_nlp .models .t5 .t5_backbone import T5Backbone
132133from keras_nlp .models .t5 .t5_tokenizer import T5Tokenizer
134+ from keras_nlp .models .task import Task
133135from keras_nlp .models .whisper .whisper_audio_feature_extractor import (
134136 WhisperAudioFeatureExtractor ,
135137)
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ from keras_nlp .api_export import keras_nlp_export
1516from keras_nlp .backend import config
1617from keras_nlp .backend import keras
1718from keras_nlp .utils .preset_utils import check_preset_class
2021from keras_nlp .utils .python_utils import format_docstring
2122
2223
23- @keras . saving . register_keras_serializable ( package = "keras_nlp" )
24+ @keras_nlp_export ( "keras_nlp.models.Backbone " )
2425class Backbone (keras .Model ):
2526 def __init__ (self , * args , dtype = None , ** kwargs ):
2627 super ().__init__ (* args , ** kwargs )
Original file line number Diff line number Diff line change 1616from rich import markup
1717from rich import table as rich_table
1818
19+ from keras_nlp .api_export import keras_nlp_export
1920from keras_nlp .backend import config
2021from keras_nlp .backend import keras
2122from keras_nlp .utils .keras_utils import print_msg
2627from keras_nlp .utils .python_utils import format_docstring
2728
2829
29- @keras . saving . register_keras_serializable ( package = "keras_nlp" )
30+ @keras_nlp_export ( "keras_nlp.models.Task " )
3031class Task (PipelineModel ):
3132 """Base class for Task models."""
3233
You can’t perform that action at this time.
0 commit comments