tfm.vision.factory_3d.register_model_builder
Decorates a builder of model class.
tfm.vision.factory_3d.register_model_builder(
key: str
)
The builder should be a Callable (a class or a function).
This decorator supports registration of backbone builder as follows:
class MyModel(tf.keras.Model):
pass
@register_backbone_builder('mybackbone')
def builder(input_specs, config, l2_reg):
return MyModel(...)
# Builds a MyModel object.
my_backbone = build_backbone_3d(input_specs, config, l2_reg)
Args |
key
|
the key to look up the builder.
|
Returns |
A callable for use as class decorator that registers the decorated class
for creation from an instance of model class.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-02-02 UTC.
[null,null,["Last updated 2024-02-02 UTC."],[],[]]