dgbpy.deeplearning_apply_serverlib
Module Contents
Classes
- exception dgbpy.deeplearning_apply_serverlib.ExitCommand
Bases:
Exception
Common base class for all non-exit exceptions.
- class dgbpy.deeplearning_apply_serverlib.ModelApplier(modelfnm, applydir=dgbkeys.inlinestr, isfake=False)
- _get_info(self, modelfnm)
- _set_transpose(self)
- setOutputs(self, outputs)
- _usePar(self, pars)
- hasModel(self)
- getScaler(self, outputs)
- preprocess(self, samples)
- postprocess(self, samples)
- flatModelApply(self, inp, samples, samples_shape)
- doWork(self, inp)
- debug_msg(self, a, b=None, c=None, d=None, e=None, f=None, g=None, h=None)
- class dgbpy.deeplearning_apply_serverlib.Message(selector, sock, addr, applier)
- _set_selector_events_mask(self, mode)
Set selector to listen for events: mode is ‘r’, ‘w’, or ‘rw’.
- _read(self)
- _write(self)
- _json_encode(self, obj, encoding)
- _json_decode(self, json_bytes, encoding)
- _array_decode(self, arrptr, shapes, dtypes)
- _create_message(self, *, content_bytes, content_type, content_encoding, arrsize)
- _make_exception_report(self, msg, exc)
- _create_response_json_content(self)
- _create_response_array_content(self)
- _create_response_binary_content(self)
- _add_debug_str(self, response)
- process_events(self, mask)
- read(self)
- write(self)
- close(self)
- process_odheader(self)
- process_jsonheader(self)
- process_request(self)
- create_response(self)