MCPcopy Index your code
hub / github.com/MoonInTheRiver/DiffSinger / is_function_implemented

Method is_function_implemented

utils/pl_utils.py:1606–1609  ·  view source on GitHub ↗
(self, f_name)

Source from the content-addressed store, hash-verified

1604 # Utils
1605 # ---------------
1606 def is_function_implemented(self, f_name):
1607 model = self.get_model()
1608 f_op = getattr(model, f_name, None)
1609 return callable(f_op)
1610
1611 def _percent_range_check(self, name):
1612 value = getattr(self, name)

Callers 3

run_training_epochMethod · 0.95
run_training_batchMethod · 0.95
optimizer_closureMethod · 0.95

Calls 1

get_modelMethod · 0.95

Tested by

no test coverage detected