Searched refs:hook_name (Results 1 – 1 of 1) sorted by relevance
305 hook_name = 'on_{mode}_batch_begin'.format(mode=mode)306 self._call_batch_hook_helper(hook_name, batch, logs)313 hook_name = 'on_{mode}_batch_end'.format(mode=mode)319 self._call_batch_hook_helper(hook_name, batch, logs)322 end_hook_name = hook_name349 def _call_batch_hook_helper(self, hook_name, batch, logs): argument357 hook = getattr(callback, hook_name)366 if hook_name not in self._hook_times:367 self._hook_times[hook_name] = []368 self._hook_times[hook_name].append(time.time() - start_time)