{"action":"created","comment":{"url":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/comments/203889078","pull_request_review_id":138871659,"id":203889078,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzg4OTA3OA==","diff_hunk":"@@ -0,0 +1,19 @@\n+from model_service import preprocess, inference, postprocess\n+\n+\n+def lambda_handler(event, context):\n+\n+    # serving \n+    input    = preprocess(event)","path":"lit-base/lambda_function.py","position":7,"original_position":7,"commit_id":"70f32a3b08471d9c3bb614643c2590f4b5ba72e3","original_commit_id":"70f32a3b08471d9c3bb614643c2590f4b5ba72e3","user":{"login":"anchen1011","id":22991557,"node_id":"MDQ6VXNlcjIyOTkxNTU3","avatar_url":"https://avatars1.githubusercontent.com/u/22991557?v=4","gravatar_id":"","url":"https://api.github.com/users/anchen1011","html_url":"https://github.com/anchen1011","followers_url":"https://api.github.com/users/anchen1011/followers","following_url":"https://api.github.com/users/anchen1011/following{/other_user}","gists_url":"https://api.github.com/users/anchen1011/gists{/gist_id}","starred_url":"https://api.github.com/users/anchen1011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchen1011/subscriptions","organizations_url":"https://api.github.com/users/anchen1011/orgs","repos_url":"https://api.github.com/users/anchen1011/repos","events_url":"https://api.github.com/users/anchen1011/events{/privacy}","received_events_url":"https://api.github.com/users/anchen1011/received_events","type":"User","site_admin":false},"body":"Modified accordingly","created_at":"2018-07-19T22:13:42Z","updated_at":"2018-07-19T22:13:42Z","html_url":"https://github.com/awslabs/mxnet-lambda/pull/17#discussion_r203889078","pull_request_url":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/17","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/comments/203889078"},"html":{"href":"https://github.com/awslabs/mxnet-lambda/pull/17#discussion_r203889078"},"pull_request":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/17"}},"in_reply_to_id":203796476},"pull_request":{"url":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/17","id":202416833,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNDE2ODMz","html_url":"https://github.com/awslabs/mxnet-lambda/pull/17","diff_url":"https://github.com/awslabs/mxnet-lambda/pull/17.diff","patch_url":"https://github.com/awslabs/mxnet-lambda/pull/17.patch","issue_url":"https://api.github.com/repos/awslabs/mxnet-lambda/issues/17","number":17,"state":"open","locked":false,"title":"Base code for Lambda Function","user":{"login":"anchen1011","id":22991557,"node_id":"MDQ6VXNlcjIyOTkxNTU3","avatar_url":"https://avatars1.githubusercontent.com/u/22991557?v=4","gravatar_id":"","url":"https://api.github.com/users/anchen1011","html_url":"https://github.com/anchen1011","followers_url":"https://api.github.com/users/anchen1011/followers","following_url":"https://api.github.com/users/anchen1011/following{/other_user}","gists_url":"https://api.github.com/users/anchen1011/gists{/gist_id}","starred_url":"https://api.github.com/users/anchen1011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchen1011/subscriptions","organizations_url":"https://api.github.com/users/anchen1011/orgs","repos_url":"https://api.github.com/users/anchen1011/repos","events_url":"https://api.github.com/users/anchen1011/events{/privacy}","received_events_url":"https://api.github.com/users/anchen1011/received_events","type":"User","site_admin":false},"body":"This section of code is the base function for Lambda Inference. LIT as a tool will modify `model_service.py` and `model_url.yaml` for generalized purpose.","created_at":"2018-07-19T00:43:04Z","updated_at":"2018-07-19T22:13:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e48d0f29b3f632488d12c4b0e69d77c85a666c1","assignee":{"login":"nswamy","id":1208642,"node_id":"MDQ6VXNlcjEyMDg2NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1208642?v=4","gravatar_id":"","url":"https://api.github.com/users/nswamy","html_url":"https://github.com/nswamy","followers_url":"https://api.github.com/users/nswamy/followers","following_url":"https://api.github.com/users/nswamy/following{/other_user}","gists_url":"https://api.github.com/users/nswamy/gists{/gist_id}","starred_url":"https://api.github.com/users/nswamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nswamy/subscriptions","organizations_url":"https://api.github.com/users/nswamy/orgs","repos_url":"https://api.github.com/users/nswamy/repos","events_url":"https://api.github.com/users/nswamy/events{/privacy}","received_events_url":"https://api.github.com/users/nswamy/received_events","type":"User","site_admin":false},"assignees":[{"login":"nswamy","id":1208642,"node_id":"MDQ6VXNlcjEyMDg2NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1208642?v=4","gravatar_id":"","url":"https://api.github.com/users/nswamy","html_url":"https://github.com/nswamy","followers_url":"https://api.github.com/users/nswamy/followers","following_url":"https://api.github.com/users/nswamy/following{/other_user}","gists_url":"https://api.github.com/users/nswamy/gists{/gist_id}","starred_url":"https://api.github.com/users/nswamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nswamy/subscriptions","organizations_url":"https://api.github.com/users/nswamy/orgs","repos_url":"https://api.github.com/users/nswamy/repos","events_url":"https://api.github.com/users/nswamy/events{/privacy}","received_events_url":"https://api.github.com/users/nswamy/received_events","type":"User","site_admin":false},{"login":"anchen1011","id":22991557,"node_id":"MDQ6VXNlcjIyOTkxNTU3","avatar_url":"https://avatars1.githubusercontent.com/u/22991557?v=4","gravatar_id":"","url":"https://api.github.com/users/anchen1011","html_url":"https://github.com/anchen1011","followers_url":"https://api.github.com/users/anchen1011/followers","following_url":"https://api.github.com/users/anchen1011/following{/other_user}","gists_url":"https://api.github.com/users/anchen1011/gists{/gist_id}","starred_url":"https://api.github.com/users/anchen1011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchen1011/subscriptions","organizations_url":"https://api.github.com/users/anchen1011/orgs","repos_url":"https://api.github.com/users/anchen1011/repos","events_url":"https://api.github.com/users/anchen1011/events{/privacy}","received_events_url":"https://api.github.com/users/anchen1011/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"nswamy","id":1208642,"node_id":"MDQ6VXNlcjEyMDg2NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1208642?v=4","gravatar_id":"","url":"https://api.github.com/users/nswamy","html_url":"https://github.com/nswamy","followers_url":"https://api.github.com/users/nswamy/followers","following_url":"https://api.github.com/users/nswamy/following{/other_user}","gists_url":"https://api.github.com/users/nswamy/gists{/gist_id}","starred_url":"https://api.github.com/users/nswamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nswamy/subscriptions","organizations_url":"https://api.github.com/users/nswamy/orgs","repos_url":"https://api.github.com/users/nswamy/repos","events_url":"https://api.github.com/users/nswamy/events{/privacy}","received_events_url":"https://api.github.com/users/nswamy/received_events","type":"User","site_admin":false},{"login":"frankfliu","id":24425551,"node_id":"MDQ6VXNlcjI0NDI1NTUx","avatar_url":"https://avatars1.githubusercontent.com/u/24425551?v=4","gravatar_id":"","url":"https://api.github.com/users/frankfliu","html_url":"https://github.com/frankfliu","followers_url":"https://api.github.com/users/frankfliu/followers","following_url":"https://api.github.com/users/frankfliu/following{/other_user}","gists_url":"https://api.github.com/users/frankfliu/gists{/gist_id}","starred_url":"https://api.github.com/users/frankfliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankfliu/subscriptions","organizations_url":"https://api.github.com/users/frankfliu/orgs","repos_url":"https://api.github.com/users/frankfliu/repos","events_url":"https://api.github.com/users/frankfliu/events{/privacy}","received_events_url":"https://api.github.com/users/frankfliu/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/17/commits","review_comments_url":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/17/comments","review_comment_url":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awslabs/mxnet-lambda/issues/17/comments","statuses_url":"https://api.github.com/repos/awslabs/mxnet-lambda/statuses/70f32a3b08471d9c3bb614643c2590f4b5ba72e3","head":{"label":"anchen1011:lit","ref":"lit","sha":"70f32a3b08471d9c3bb614643c2590f4b5ba72e3","user":{"login":"anchen1011","id":22991557,"node_id":"MDQ6VXNlcjIyOTkxNTU3","avatar_url":"https://avatars1.githubusercontent.com/u/22991557?v=4","gravatar_id":"","url":"https://api.github.com/users/anchen1011","html_url":"https://github.com/anchen1011","followers_url":"https://api.github.com/users/anchen1011/followers","following_url":"https://api.github.com/users/anchen1011/following{/other_user}","gists_url":"https://api.github.com/users/anchen1011/gists{/gist_id}","starred_url":"https://api.github.com/users/anchen1011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchen1011/subscriptions","organizations_url":"https://api.github.com/users/anchen1011/orgs","repos_url":"https://api.github.com/users/anchen1011/repos","events_url":"https://api.github.com/users/anchen1011/events{/privacy}","received_events_url":"https://api.github.com/users/anchen1011/received_events","type":"User","site_admin":false},"repo":{"id":140614308,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA2MTQzMDg=","name":"mxnet-lambda","full_name":"anchen1011/mxnet-lambda","owner":{"login":"anchen1011","id":22991557,"node_id":"MDQ6VXNlcjIyOTkxNTU3","avatar_url":"https://avatars1.githubusercontent.com/u/22991557?v=4","gravatar_id":"","url":"https://api.github.com/users/anchen1011","html_url":"https://github.com/anchen1011","followers_url":"https://api.github.com/users/anchen1011/followers","following_url":"https://api.github.com/users/anchen1011/following{/other_user}","gists_url":"https://api.github.com/users/anchen1011/gists{/gist_id}","starred_url":"https://api.github.com/users/anchen1011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchen1011/subscriptions","organizations_url":"https://api.github.com/users/anchen1011/orgs","repos_url":"https://api.github.com/users/anchen1011/repos","events_url":"https://api.github.com/users/anchen1011/events{/privacy}","received_events_url":"https://api.github.com/users/anchen1011/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anchen1011/mxnet-lambda","description":"Reference Lambda function that predicts image labels for a image using an MXNet-built deep learning model. The repo also has pre-built MXNet, OpenCV libraries for use with AWS Lambda.","fork":true,"url":"https://api.github.com/repos/anchen1011/mxnet-lambda","forks_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/forks","keys_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/teams","hooks_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/hooks","issue_events_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/issues/events{/number}","events_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/events","assignees_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/assignees{/user}","branches_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/branches{/branch}","tags_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/tags","blobs_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/git/refs{/sha}","trees_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/statuses/{sha}","languages_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/languages","stargazers_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/stargazers","contributors_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/contributors","subscribers_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/subscribers","subscription_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/subscription","commits_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/commits{/sha}","git_commits_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/git/commits{/sha}","comments_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/comments{/number}","issue_comment_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/issues/comments{/number}","contents_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/contents/{+path}","compare_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/merges","archive_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/downloads","issues_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/issues{/number}","pulls_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/pulls{/number}","milestones_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/milestones{/number}","notifications_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/labels{/name}","releases_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/releases{/id}","deployments_url":"https://api.github.com/repos/anchen1011/mxnet-lambda/deployments","created_at":"2018-07-11T18:29:38Z","updated_at":"2018-07-17T23:47:30Z","pushed_at":"2018-07-19T00:46:28Z","git_url":"git://github.com/anchen1011/mxnet-lambda.git","ssh_url":"git@github.com:anchen1011/mxnet-lambda.git","clone_url":"https://github.com/anchen1011/mxnet-lambda.git","svn_url":"https://github.com/anchen1011/mxnet-lambda","homepage":null,"size":84452,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awslabs:lit","ref":"lit","sha":"0e013b0dfdb07e1825decbb1f9ec27e1208ea0c4","user":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":78054539,"node_id":"MDEwOlJlcG9zaXRvcnk3ODA1NDUzOQ==","name":"mxnet-lambda","full_name":"awslabs/mxnet-lambda","owner":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/awslabs/mxnet-lambda","description":"Reference Lambda function that predicts image labels for a image using an MXNet-built deep learning model. The repo also has pre-built MXNet, OpenCV libraries for use with AWS Lambda.","fork":false,"url":"https://api.github.com/repos/awslabs/mxnet-lambda","forks_url":"https://api.github.com/repos/awslabs/mxnet-lambda/forks","keys_url":"https://api.github.com/repos/awslabs/mxnet-lambda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awslabs/mxnet-lambda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awslabs/mxnet-lambda/teams","hooks_url":"https://api.github.com/repos/awslabs/mxnet-lambda/hooks","issue_events_url":"https://api.github.com/repos/awslabs/mxnet-lambda/issues/events{/number}","events_url":"https://api.github.com/repos/awslabs/mxnet-lambda/events","assignees_url":"https://api.github.com/repos/awslabs/mxnet-lambda/assignees{/user}","branches_url":"https://api.github.com/repos/awslabs/mxnet-lambda/branches{/branch}","tags_url":"https://api.github.com/repos/awslabs/mxnet-lambda/tags","blobs_url":"https://api.github.com/repos/awslabs/mxnet-lambda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awslabs/mxnet-lambda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awslabs/mxnet-lambda/git/refs{/sha}","trees_url":"https://api.github.com/repos/awslabs/mxnet-lambda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awslabs/mxnet-lambda/statuses/{sha}","languages_url":"https://api.github.com/repos/awslabs/mxnet-lambda/languages","stargazers_url":"https://api.github.com/repos/awslabs/mxnet-lambda/stargazers","contributors_url":"https://api.github.com/repos/awslabs/mxnet-lambda/contributors","subscribers_url":"https://api.github.com/repos/awslabs/mxnet-lambda/subscribers","subscription_url":"https://api.github.com/repos/awslabs/mxnet-lambda/subscription","commits_url":"https://api.github.com/repos/awslabs/mxnet-lambda/commits{/sha}","git_commits_url":"https://api.github.com/repos/awslabs/mxnet-lambda/git/commits{/sha}","comments_url":"https://api.github.com/repos/awslabs/mxnet-lambda/comments{/number}","issue_comment_url":"https://api.github.com/repos/awslabs/mxnet-lambda/issues/comments{/number}","contents_url":"https://api.github.com/repos/awslabs/mxnet-lambda/contents/{+path}","compare_url":"https://api.github.com/repos/awslabs/mxnet-lambda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awslabs/mxnet-lambda/merges","archive_url":"https://api.github.com/repos/awslabs/mxnet-lambda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awslabs/mxnet-lambda/downloads","issues_url":"https://api.github.com/repos/awslabs/mxnet-lambda/issues{/number}","pulls_url":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls{/number}","milestones_url":"https://api.github.com/repos/awslabs/mxnet-lambda/milestones{/number}","notifications_url":"https://api.github.com/repos/awslabs/mxnet-lambda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awslabs/mxnet-lambda/labels{/name}","releases_url":"https://api.github.com/repos/awslabs/mxnet-lambda/releases{/id}","deployments_url":"https://api.github.com/repos/awslabs/mxnet-lambda/deployments","created_at":"2017-01-04T21:31:01Z","updated_at":"2018-06-17T04:49:32Z","pushed_at":"2018-07-19T00:46:29Z","git_url":"git://github.com/awslabs/mxnet-lambda.git","ssh_url":"git@github.com:awslabs/mxnet-lambda.git","clone_url":"https://github.com/awslabs/mxnet-lambda.git","svn_url":"https://github.com/awslabs/mxnet-lambda","homepage":null,"size":84441,"stargazers_count":101,"watchers_count":101,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":32,"open_issues":7,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/17"},"html":{"href":"https://github.com/awslabs/mxnet-lambda/pull/17"},"issue":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/issues/17"},"comments":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/awslabs/mxnet-lambda/statuses/70f32a3b08471d9c3bb614643c2590f4b5ba72e3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"anchen1011"}}