SYMBOL INDEX (272 symbols across 29 files) FILE: docker/build_artifacts/deep_learning_container.py function _validate_instance_id (line 19) | def _validate_instance_id(instance_id): function _retrieve_instance_id (line 33) | def _retrieve_instance_id(): function _retrieve_instance_region (line 47) | def _retrieve_instance_region(): function query_bucket (line 83) | def query_bucket(): function requests_helper (line 103) | def requests_helper(url, timeout): function main (line 113) | def main(): FILE: docker/build_artifacts/sagemaker/multi_model_utils.py function lock (line 23) | def lock(path=DEFAULT_LOCK_FILE): function timeout (line 36) | def timeout(seconds=60): class MultiModelException (line 48) | class MultiModelException(Exception): method __init__ (line 49) | def __init__(self, code, msg): FILE: docker/build_artifacts/sagemaker/python_service.py function default_handler (line 45) | def default_handler(data, context): class PythonServiceResource (line 60) | class PythonServiceResource: method __init__ (line 61) | def __init__(self): method on_post (line 93) | def on_post(self, req, res, model_name=None): method _parse_concat_ports (line 100) | def _parse_concat_ports(self, concat_ports): method _pick_port (line 103) | def _pick_port(self, ports): method _parse_sagemaker_port_range_mme (line 106) | def _parse_sagemaker_port_range_mme(self, port_range): method _ports_available (line 118) | def _ports_available(self): method _handle_load_model_post (line 124) | def _handle_load_model_post(self, res, data): # noqa: C901 method _cleanup_config_file (line 224) | def _cleanup_config_file(self, config_file): method _handle_invocation_post (line 228) | def _handle_invocation_post(self, req, res, model_name=None): method _setup_channel (line 274) | def _setup_channel(self, grpc_port): method _import_handlers (line 279) | def _import_handlers(self): method _make_handler (line 296) | def _make_handler(self, custom_handler, custom_input_handler, custom_o... method on_get (line 307) | def on_get(self, req, res, model_name=None): # pylint: disable=W0613 method on_delete (line 339) | def on_delete(self, req, res, model_name): # pylint: disable=W0613 method validate_model_dir (line 364) | def validate_model_dir(self, model_path): method validate_model_versions (line 375) | def validate_model_versions(self, versions): class PingResource (line 387) | class PingResource: method on_get (line 388) | def on_get(self, req, res): # pylint: disable=W0613 class ServiceResources (line 392) | class ServiceResources: method __init__ (line 393) | def __init__(self): method add_routes (line 398) | def add_routes(self, application): FILE: docker/build_artifacts/sagemaker/serve.py class ServiceManager (line 39) | class ServiceManager(object): method __init__ (line 40) | def __init__(self): method _need_python_service (line 136) | def _need_python_service(self): method _concat_ports (line 144) | def _concat_ports(self, ports): method _create_tfs_config (line 149) | def _create_tfs_config(self): method _setup_gunicorn (line 186) | def _setup_gunicorn(self): method _download_scripts (line 245) | def _download_scripts(self, bucket, prefix): method _create_nginx_tfs_upstream (line 264) | def _create_nginx_tfs_upstream(self): method _create_nginx_config (line 273) | def _create_nginx_config(self): method _read_nginx_template (line 296) | def _read_nginx_template(self): method _enable_per_process_gpu_memory_fraction (line 304) | def _enable_per_process_gpu_memory_fraction(self): method _get_number_of_gpu_on_host (line 311) | def _get_number_of_gpu_on_host(self): method _calculate_per_process_gpu_memory_fraction (line 319) | def _calculate_per_process_gpu_memory_fraction(self): method _start_tfs (line 322) | def _start_tfs(self): method _start_gunicorn (line 329) | def _start_gunicorn(self): method _start_nginx (line 337) | def _start_nginx(self): method _log_version (line 343) | def _log_version(self, command, message): method _stop (line 354) | def _stop(self, *args): # pylint: disable=W0613 method _wait_for_gunicorn (line 375) | def _wait_for_gunicorn(self): method _wait_for_tfs (line 381) | def _wait_for_tfs(self): method _timeout (line 388) | def _timeout(self, seconds): method _is_tfs_process (line 399) | def _is_tfs_process(self, pid): method _find_tfs_process (line 405) | def _find_tfs_process(self, pid): method _restart_single_tfs (line 411) | def _restart_single_tfs(self, pid): method _start_single_tfs (line 418) | def _start_single_tfs(self, instance_id): method _monitor (line 447) | def _monitor(self): method start (line 471) | def start(self): FILE: docker/build_artifacts/sagemaker/tensorflowServing.js function invocations (line 4) | function invocations(r) { function ping (line 16) | function ping(r) { function ping_without_model (line 31) | function ping_without_model(r) { function return_error (line 57) | function return_error(r, code, message) { function tfs_json_request (line 65) | function tfs_json_request(r, json) { function make_tfs_uri (line 94) | function make_tfs_uri(r, with_method) { function parse_custom_attributes (line 109) | function parse_custom_attributes(r) { function json_request (line 140) | function json_request(r) { function is_tfs_json (line 152) | function is_tfs_json(data) { function is_json_lines (line 156) | function is_json_lines(data) { function generic_json_request (line 161) | function generic_json_request(r, data) { function json_lines_request (line 170) | function json_lines_request(r, data) { function csv_request (line 191) | function csv_request(r) { FILE: docker/build_artifacts/sagemaker/tfs_utils.py function parse_request (line 41) | def parse_request(req, rest_port, grpc_port, default_model_name, model_n... function make_tfs_uri (line 65) | def make_tfs_uri(port, attributes, default_model_name, model_name=None): function parse_tfs_custom_attributes (line 79) | def parse_tfs_custom_attributes(req): function create_tfs_config_individual_model (line 88) | def create_tfs_config_individual_model(model_name, base_path): function tfs_command (line 107) | def tfs_command( function find_models (line 136) | def find_models(): function find_model_versions (line 148) | def find_model_versions(model_path): function _find_saved_model_files (line 157) | def _find_saved_model_files(path): function get_tfs_batching_args (line 166) | def get_tfs_batching_args(enable_batching, tfs_batching_config): function get_tensorflow_intra_op_parallelism_args (line 173) | def get_tensorflow_intra_op_parallelism_args(tfs_intra_op_parallelism): function get_tensorflow_inter_op_parallelism_args (line 180) | def get_tensorflow_inter_op_parallelism_args(tfs_inter_op_parallelism): function get_tfs_gpu_mem_args (line 187) | def get_tfs_gpu_mem_args(enable_gpu_memory_fraction, gpu_memory_fraction): function create_batching_config (line 194) | def create_batching_config(batching_config_file): function wait_for_model (line 257) | def wait_for_model(rest_port, model_name, timeout_seconds, wait_interval... FILE: test/integration/local/conftest.py function pytest_addoption (line 20) | def pytest_addoption(parser): function docker_base_name (line 28) | def docker_base_name(request): function framework_version (line 33) | def framework_version(request): function processor (line 38) | def processor(request): function runtime_config (line 43) | def runtime_config(request, processor): function tag (line 51) | def tag(request, framework_version, processor): function skip_by_device_type (line 59) | def skip_by_device_type(request, processor): FILE: test/integration/local/multi_model_endpoint_test_utils.py function make_headers (line 21) | def make_headers(content_type="application/json", method="predict", vers... function make_invocation_request (line 32) | def make_invocation_request(data, model_name, content_type="application/... function make_list_model_request (line 38) | def make_list_model_request(): function make_get_model_request (line 43) | def make_get_model_request(model_name): function make_load_model_request (line 48) | def make_load_model_request(data, content_type="application/json"): function make_unload_model_request (line 56) | def make_unload_model_request(model_name): FILE: test/integration/local/test_container.py function volume (line 27) | def volume(): function container (line 39) | def container(request, docker_base_name, tag, runtime_config): function make_request (line 76) | def make_request(data, content_type="application/json", method="predict"... function test_predict (line 89) | def test_predict(): function test_predict_twice (line 98) | def test_predict_twice(): function test_predict_specific_versions (line 109) | def test_predict_specific_versions(): function test_predict_two_instances (line 121) | def test_predict_two_instances(): function test_predict_instance_jsonlines_input_error (line 130) | def test_predict_instance_jsonlines_input_error(): function test_predict_jsons_json_content_type (line 145) | def test_predict_jsons_json_content_type(): function test_predict_jsonlines (line 151) | def test_predict_jsonlines(): function test_predict_jsons (line 157) | def test_predict_jsons(): function test_predict_jsons_2 (line 163) | def test_predict_jsons_2(): function test_predict_generic_json (line 169) | def test_predict_generic_json(): function test_predict_generic_json_two_instances (line 175) | def test_predict_generic_json_two_instances(): function test_predict_csv (line 181) | def test_predict_csv(): function test_predict_csv_with_zero (line 187) | def test_predict_csv_with_zero(): function test_predict_csv_one_instance_three_values_with_zero (line 193) | def test_predict_csv_one_instance_three_values_with_zero(): function test_predict_csv_one_instance_three_values (line 199) | def test_predict_csv_one_instance_three_values(): function test_predict_csv_two_instances_three_values (line 205) | def test_predict_csv_two_instances_three_values(): function test_predict_csv_three_instances (line 211) | def test_predict_csv_three_instances(): function test_predict_csv_wide_categorical_input (line 217) | def test_predict_csv_wide_categorical_input(): function test_regress (line 230) | def test_regress(): function test_regress_one_instance (line 240) | def test_regress_one_instance(): function test_predict_bad_input (line 253) | def test_predict_bad_input(): function test_predict_bad_input_instances (line 258) | def test_predict_bad_input_instances(): function test_predict_no_custom_attributes_header (line 264) | def test_predict_no_custom_attributes_header(): function test_predict_with_jsonlines (line 278) | def test_predict_with_jsonlines(): function test_predict_with_multiple_accept_types (line 292) | def test_predict_with_multiple_accept_types(): FILE: test/integration/local/test_multi_model_endpoint.py function volume (line 34) | def volume(): function container (line 46) | def container(request, docker_base_name, tag, runtime_config): function test_ping (line 77) | def test_ping(): function test_container_start_invocation_fail (line 83) | def test_container_start_invocation_fail(): function test_list_models_empty (line 94) | def test_list_models_empty(): function test_delete_unloaded_model (line 102) | def test_delete_unloaded_model(): function test_delete_model (line 111) | def test_delete_model(): function test_load_two_models (line 138) | def test_load_two_models(): function test_load_one_model_two_times (line 180) | def test_load_one_model_two_times(): function test_load_non_existing_model (line 196) | def test_load_non_existing_model(): function test_bad_model_reqeust (line 209) | def test_bad_model_reqeust(): function test_invalid_model_version (line 219) | def test_invalid_model_version(): FILE: test/integration/local/test_multi_tfs.py function volume (line 27) | def volume(): function container (line 39) | def container(request, docker_base_name, tag, runtime_config): function make_request (line 78) | def make_request(data, content_type="application/json", method="predict"... function test_predict (line 91) | def test_predict(): FILE: test/integration/local/test_nginx_config.py function volume (line 21) | def volume(): function test_run_nginx_with_default_parameters (line 33) | def test_run_nginx_with_default_parameters(docker_base_name, tag, runtim... function test_run_nginx_with_env_var_parameters (line 62) | def test_run_nginx_with_env_var_parameters(docker_base_name, tag, runtim... function test_run_nginx_with_higher_gunicorn_parameter (line 92) | def test_run_nginx_with_higher_gunicorn_parameter(docker_base_name, tag,... FILE: test/integration/local/test_pre_post_processing.py function volume (line 30) | def volume(tmpdir_factory, request): function container (line 51) | def container(volume, docker_base_name, tag, runtime_config): function make_headers (line 80) | def make_headers(content_type, method, version=None): function test_predict_json (line 91) | def test_predict_json(): function test_zero_content (line 98) | def test_zero_content(): function test_large_input (line 106) | def test_large_input(): function test_csv_input (line 117) | def test_csv_input(): function test_predict_specific_versions (line 124) | def test_predict_specific_versions(): function test_unsupported_content_type (line 132) | def test_unsupported_content_type(): function test_ping_service (line 140) | def test_ping_service(): FILE: test/integration/local/test_pre_post_processing_mme.py function volume (line 34) | def volume(): function container (line 46) | def container(docker_base_name, tag, runtime_config): function model (line 77) | def model(): function test_ping_service (line 87) | def test_ping_service(): function test_predict_json (line 93) | def test_predict_json(model): function test_zero_content (line 101) | def test_zero_content(): function test_large_input (line 110) | def test_large_input(): function test_csv_input (line 122) | def test_csv_input(): function test_specific_versions (line 130) | def test_specific_versions(): function test_unsupported_content_type (line 141) | def test_unsupported_content_type(): FILE: test/integration/local/test_tfs_batching.py function volume (line 21) | def volume(): function test_run_tfs_with_batching_parameters (line 32) | def test_run_tfs_with_batching_parameters(docker_base_name, tag, runtime... FILE: test/integration/sagemaker/conftest.py function pytest_addoption (line 48) | def pytest_addoption(parser): function pytest_configure (line 58) | def pytest_configure(config): function region (line 74) | def region(request): function registry (line 79) | def registry(request, region): function boto_session (line 92) | def boto_session(region): function sagemaker_client (line 97) | def sagemaker_client(boto_session): function sagemaker_runtime_client (line 102) | def sagemaker_runtime_client(boto_session): function unique_name_from_base (line 106) | def unique_name_from_base(base, max_length=63): function model_name (line 115) | def model_name(): function skip_gpu_instance_restricted_regions (line 120) | def skip_gpu_instance_restricted_regions(region, instance_type): function skip_by_device_type (line 127) | def skip_by_device_type(request, instance_type): FILE: test/integration/sagemaker/test_ei.py function version (line 25) | def version(request): function repo (line 30) | def repo(request): function tag (line 35) | def tag(request, version): function image_uri (line 40) | def image_uri(registry, region, repo, tag): function instance_type (line 45) | def instance_type(request, region): function accelerator_type (line 50) | def accelerator_type(request): function model_data (line 55) | def model_data(region): function input_data (line 61) | def input_data(): function skip_if_no_accelerator (line 66) | def skip_if_no_accelerator(accelerator_type): function skip_if_non_supported_ei_region (line 72) | def skip_if_non_supported_ei_region(region): function test_invoke_endpoint (line 79) | def test_invoke_endpoint(boto_session, sagemaker_client, sagemaker_runti... FILE: test/integration/sagemaker/test_tfs.py function version (line 24) | def version(request): function repo (line 29) | def repo(request): function tag (line 34) | def tag(request, version, instance_type): function image_uri (line 43) | def image_uri(registry, region, repo, tag): function instance_type (line 48) | def instance_type(request, region): function accelerator_type (line 53) | def accelerator_type(): function tfs_model (line 58) | def tfs_model(region, boto_session): function python_model_with_requirements (line 65) | def python_model_with_requirements(region, boto_session): function python_model_with_lib (line 72) | def python_model_with_lib(region, boto_session): function test_tfs_model (line 78) | def test_tfs_model(boto_session, sagemaker_client, function test_batch_transform (line 87) | def test_batch_transform(region, boto_session, sagemaker_client, function test_python_model_with_requirements (line 102) | def test_python_model_with_requirements(boto_session, sagemaker_client, function test_python_model_with_lib (line 122) | def test_python_model_with_lib(boto_session, sagemaker_client, FILE: test/integration/sagemaker/util.py function image_uri (line 26) | def image_uri(registry, region, repo, tag): function _execution_role (line 30) | def _execution_role(boto_session): function sagemaker_model (line 35) | def sagemaker_model(boto_session, sagemaker_client, image_uri, model_nam... function _production_variants (line 51) | def _production_variants(model_name, instance_type, accelerator_type): function _test_bucket (line 65) | def _test_bucket(region, boto_session): function find_or_put_model_data (line 75) | def find_or_put_model_data(region, boto_session, local_path): function sagemaker_endpoint (line 109) | def sagemaker_endpoint(sagemaker_client, model_name, instance_type, acce... function _create_transform_job_request (line 138) | def _create_transform_job_request(model_name, batch_output, batch_input,... function _read_batch_output (line 164) | def _read_batch_output(region, boto_session, bucket, model_name): function _wait_for_transform_job (line 171) | def _wait_for_transform_job(region, boto_session, sagemaker_client, mode... function run_batch_transform_job (line 194) | def run_batch_transform_job(region, boto_session, model_data, image_uri, function invoke_endpoint (line 217) | def invoke_endpoint(sagemaker_runtime_client, endpoint_name, input_data): function create_and_invoke_endpoint (line 226) | def create_and_invoke_endpoint(boto_session, sagemaker_client, sagemaker... FILE: test/perf/data_generator.py function generate_json (line 13) | def generate_json(shape, payload_size): function _generate_json_recursively (line 26) | def _generate_json_recursively(shape): function generate_jsonlines (line 35) | def generate_jsonlines(shape, payload_size): function _get_num_records_for_json_payload (line 45) | def _get_num_records_for_json_payload(payload_size, one_record_size): function generate_csv (line 49) | def generate_csv(shape, payload_size): function _random_input (line 66) | def _random_input(n): function _map_payload_size_given_unit (line 71) | def _map_payload_size_given_unit(payload_size, unit_of_payload): function generate_data (line 75) | def generate_data(content_type, shape, payload_size, unit_of_payload='B'): FILE: test/perf/perftest_endpoint.py class PerfTester (line 22) | class PerfTester(object): method __init__ (line 23) | def __init__(self): method test_worker (line 30) | def test_worker(self, id, args, count, test_data, error_counts): method test (line 46) | def test(self, args, count, test_data): method report (line 69) | def report(self, args): method parse_args (line 84) | def parse_args(self, args): method run (line 94) | def run(self, args): function _read_file (line 102) | def _read_file(path): function _random_payload (line 107) | def _random_payload(size_in_kb): FILE: test/resources/examples/test1/inference.py function input_handler (line 22) | def input_handler(data, context): function output_handler (line 47) | def output_handler(data, context): FILE: test/resources/examples/test2/inference.py function handler (line 24) | def handler(data, context): function _process_input (line 39) | def _process_input(data, context): function _process_output (line 55) | def _process_output(data, context): FILE: test/resources/examples/test3/inference.py function handler (line 29) | def handler(data, context): function _process_input (line 47) | def _process_input(data, context): function _process_output (line 63) | def _process_output(data, context): FILE: test/resources/examples/test4/inference.py function handler (line 27) | def handler(data, context): function _process_input (line 53) | def _process_input(data, context): function _process_output (line 69) | def _process_output(data, context): FILE: test/resources/examples/test5/inference.py function handler (line 27) | def handler(data, context): function _process_input (line 53) | def _process_input(data, context): function _process_output (line 69) | def _process_output(data, context): FILE: test/resources/mme_universal_script/code/inference.py function input_handler (line 24) | def input_handler(data, context): function output_handler (line 49) | def output_handler(data, context): FILE: test/unit/test_deep_learning_container.py function fixture_valid_instance_id (line 23) | def fixture_valid_instance_id(requests_mock): function fixture_invalid_instance_id (line 29) | def fixture_invalid_instance_id(requests_mock): function fixture_none_instance_id (line 34) | def fixture_none_instance_id(requests_mock): function fixture_invalid_region (line 39) | def fixture_invalid_region(requests_mock): function fixture_valid_region (line 45) | def fixture_valid_region(requests_mock): function test_retrieve_instance_id (line 50) | def test_retrieve_instance_id(fixture_valid_instance_id): function test_retrieve_none_instance_id (line 55) | def test_retrieve_none_instance_id(fixture_none_instance_id): function test_retrieve_invalid_instance_id (line 60) | def test_retrieve_invalid_instance_id(fixture_invalid_instance_id): function test_retrieve_invalid_region (line 65) | def test_retrieve_invalid_region(fixture_invalid_region): function test_retrieve_valid_region (line 70) | def test_retrieve_valid_region(fixture_valid_region): function test_query_bucket (line 75) | def test_query_bucket(requests_mock, fixture_valid_region, fixture_valid... function test_query_bucket_region_none (line 85) | def test_query_bucket_region_none(fixture_invalid_region, fixture_valid_... function test_query_bucket_instance_id_none (line 92) | def test_query_bucket_instance_id_none(requests_mock, fixture_valid_regi... function test_query_bucket_instance_id_invalid (line 99) | def test_query_bucket_instance_id_invalid(requests_mock, fixture_valid_r... function test_HTTP_error_on_S3 (line 106) | def test_HTTP_error_on_S3(requests_mock, fixture_valid_region, fixture_v... function test_connection_error_on_S3 (line 122) | def test_connection_error_on_S3(requests_mock, fixture_valid_region, fix... function test_timeout_error_on_S3 (line 139) | def test_timeout_error_on_S3(requests_mock, fixture_valid_region, fixtur... FILE: test/unit/test_proxy_client.py function create_sagemaker_folder (line 9) | def create_sagemaker_folder(tmpdir): function test_grpc_add_model_no_config_file (line 16) | def test_grpc_add_model_no_config_file(): function test_grpc_add_model_call (line 26) | def test_grpc_add_model_call(channel, ReloadConfigRequest): function test_grpc_delete_model_call (line 69) | def test_grpc_delete_model_call(channel, ReloadConfigRequest):