MCPcopy Create free account
hub / github.com/chibohe/text_recognition_toolbox / build_loss

Function build_loss

program.py:113–116  ·  view source on GitHub ↗
(flags)

Source from the content-addressed store, hash-verified

111
112
113def build_loss(flags):
114 loss_params = flags.Loss.function
115 loss = create_module(loss_params)(params=flags.Loss)
116 return loss
117
118
119def build_trainer(model, optimizer, loss, train_loader, val_loader, \

Callers 1

mainFunction · 0.90

Calls 1

create_moduleFunction · 0.90

Tested by

no test coverage detected