{"action":"created","comment":{"url":"https://api.github.com/repos/yuruofeifei/mms/pulls/comments/140570250","pull_request_review_id":64668453,"id":140570250,"diff_hunk":"@@ -0,0 +1,101 @@\n+from abc import ABCMeta, abstractmethod\n+\n+\n+class ModelService(object):\n+    \"\"\"ModelService wraps up all preprocessing, inference and postprocessing\n+    functions used by model service. It is defined in a flexible manner to\n+    be easily extended to support different frameworks.\n+    \"\"\"\n+    __metaclass__ = ABCMeta\n+\n+    def __init__(self, path, ctx):\n+        self.context = ctx\n+\n+    @abstractmethod\n+    def predict(self, data):","path":"model_service.py","position":15,"original_position":15,"commit_id":"59f847158b4ed0a22305ec3707b342752a96bec8","original_commit_id":"59f847158b4ed0a22305ec3707b342752a96bec8","user":{"login":"kevinthesun","id":15520525,"avatar_url":"https://avatars3.githubusercontent.com/u/15520525?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinthesun","html_url":"https://github.com/kevinthesun","followers_url":"https://api.github.com/users/kevinthesun/followers","following_url":"https://api.github.com/users/kevinthesun/following{/other_user}","gists_url":"https://api.github.com/users/kevinthesun/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinthesun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinthesun/subscriptions","organizations_url":"https://api.github.com/users/kevinthesun/orgs","repos_url":"https://api.github.com/users/kevinthesun/repos","events_url":"https://api.github.com/users/kevinthesun/events{/privacy}","received_events_url":"https://api.github.com/users/kevinthesun/received_events","type":"User","site_admin":false},"body":"Should be inference.Should be inference.","created_at":"2017-09-22T18:51:56Z","updated_at":"2017-09-22T18:51:56Z","html_url":"https://github.com/yuruofeifei/mms/pull/3#discussion_r140570250","pull_request_url":"https://api.github.com/repos/yuruofeifei/mms/pulls/3","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/yuruofeifei/mms/pulls/comments/140570250"},"html":{"href":"https://github.com/yuruofeifei/mms/pull/3#discussion_r140570250"},"pull_request":{"href":"https://api.github.com/repos/yuruofeifei/mms/pulls/3"}},"in_reply_to_id":140422013},"pull_request":{"url":"https://api.github.com/repos/yuruofeifei/mms/pulls/3","id":142489661,"html_url":"https://github.com/yuruofeifei/mms/pull/3","diff_url":"https://github.com/yuruofeifei/mms/pull/3.diff","patch_url":"https://github.com/yuruofeifei/mms/pull/3.patch","issue_url":"https://api.github.com/repos/yuruofeifei/mms/issues/3","number":3,"state":"open","locked":false,"title":"Add base model","user":{"login":"kevinthesun","id":15520525,"avatar_url":"https://avatars3.githubusercontent.com/u/15520525?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinthesun","html_url":"https://github.com/kevinthesun","followers_url":"https://api.github.com/users/kevinthesun/followers","following_url":"https://api.github.com/users/kevinthesun/following{/other_user}","gists_url":"https://api.github.com/users/kevinthesun/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinthesun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinthesun/subscriptions","organizations_url":"https://api.github.com/users/kevinthesun/orgs","repos_url":"https://api.github.com/users/kevinthesun/repos","events_url":"https://api.github.com/users/kevinthesun/events{/privacy}","received_events_url":"https://api.github.com/users/kevinthesun/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-22T03:25:01Z","updated_at":"2017-09-22T18:51:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b345f30e2f3f4be583774a24d06027a9d9fa6bd3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/yuruofeifei/mms/pulls/3/commits","review_comments_url":"https://api.github.com/repos/yuruofeifei/mms/pulls/3/comments","review_comment_url":"https://api.github.com/repos/yuruofeifei/mms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuruofeifei/mms/issues/3/comments","statuses_url":"https://api.github.com/repos/yuruofeifei/mms/statuses/59f847158b4ed0a22305ec3707b342752a96bec8","head":{"label":"kevinthesun:AddBaseModel","ref":"AddBaseModel","sha":"59f847158b4ed0a22305ec3707b342752a96bec8","user":{"login":"kevinthesun","id":15520525,"avatar_url":"https://avatars3.githubusercontent.com/u/15520525?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinthesun","html_url":"https://github.com/kevinthesun","followers_url":"https://api.github.com/users/kevinthesun/followers","following_url":"https://api.github.com/users/kevinthesun/following{/other_user}","gists_url":"https://api.github.com/users/kevinthesun/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinthesun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinthesun/subscriptions","organizations_url":"https://api.github.com/users/kevinthesun/orgs","repos_url":"https://api.github.com/users/kevinthesun/repos","events_url":"https://api.github.com/users/kevinthesun/events{/privacy}","received_events_url":"https://api.github.com/users/kevinthesun/received_events","type":"User","site_admin":false},"repo":{"id":103890681,"name":"mms","full_name":"kevinthesun/mms","owner":{"login":"kevinthesun","id":15520525,"avatar_url":"https://avatars3.githubusercontent.com/u/15520525?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinthesun","html_url":"https://github.com/kevinthesun","followers_url":"https://api.github.com/users/kevinthesun/followers","following_url":"https://api.github.com/users/kevinthesun/following{/other_user}","gists_url":"https://api.github.com/users/kevinthesun/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinthesun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinthesun/subscriptions","organizations_url":"https://api.github.com/users/kevinthesun/orgs","repos_url":"https://api.github.com/users/kevinthesun/repos","events_url":"https://api.github.com/users/kevinthesun/events{/privacy}","received_events_url":"https://api.github.com/users/kevinthesun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevinthesun/mms","description":"MXNet Model Serving","fork":true,"url":"https://api.github.com/repos/kevinthesun/mms","forks_url":"https://api.github.com/repos/kevinthesun/mms/forks","keys_url":"https://api.github.com/repos/kevinthesun/mms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevinthesun/mms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevinthesun/mms/teams","hooks_url":"https://api.github.com/repos/kevinthesun/mms/hooks","issue_events_url":"https://api.github.com/repos/kevinthesun/mms/issues/events{/number}","events_url":"https://api.github.com/repos/kevinthesun/mms/events","assignees_url":"https://api.github.com/repos/kevinthesun/mms/assignees{/user}","branches_url":"https://api.github.com/repos/kevinthesun/mms/branches{/branch}","tags_url":"https://api.github.com/repos/kevinthesun/mms/tags","blobs_url":"https://api.github.com/repos/kevinthesun/mms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevinthesun/mms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevinthesun/mms/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevinthesun/mms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevinthesun/mms/statuses/{sha}","languages_url":"https://api.github.com/repos/kevinthesun/mms/languages","stargazers_url":"https://api.github.com/repos/kevinthesun/mms/stargazers","contributors_url":"https://api.github.com/repos/kevinthesun/mms/contributors","subscribers_url":"https://api.github.com/repos/kevinthesun/mms/subscribers","subscription_url":"https://api.github.com/repos/kevinthesun/mms/subscription","commits_url":"https://api.github.com/repos/kevinthesun/mms/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevinthesun/mms/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevinthesun/mms/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevinthesun/mms/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevinthesun/mms/contents/{+path}","compare_url":"https://api.github.com/repos/kevinthesun/mms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevinthesun/mms/merges","archive_url":"https://api.github.com/repos/kevinthesun/mms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevinthesun/mms/downloads","issues_url":"https://api.github.com/repos/kevinthesun/mms/issues{/number}","pulls_url":"https://api.github.com/repos/kevinthesun/mms/pulls{/number}","milestones_url":"https://api.github.com/repos/kevinthesun/mms/milestones{/number}","notifications_url":"https://api.github.com/repos/kevinthesun/mms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevinthesun/mms/labels{/name}","releases_url":"https://api.github.com/repos/kevinthesun/mms/releases{/id}","deployments_url":"https://api.github.com/repos/kevinthesun/mms/deployments","created_at":"2017-09-18T04:16:42Z","updated_at":"2017-09-18T04:16:45Z","pushed_at":"2017-09-22T03:23:49Z","git_url":"git://github.com/kevinthesun/mms.git","ssh_url":"git@github.com:kevinthesun/mms.git","clone_url":"https://github.com/kevinthesun/mms.git","svn_url":"https://github.com/kevinthesun/mms","homepage":"","size":42735,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yuruofeifei:master","ref":"master","sha":"918b5806dce46fa8a09950e93958d428472d9d6d","user":{"login":"yuruofeifei","id":3958379,"avatar_url":"https://avatars2.githubusercontent.com/u/3958379?v=4","gravatar_id":"","url":"https://api.github.com/users/yuruofeifei","html_url":"https://github.com/yuruofeifei","followers_url":"https://api.github.com/users/yuruofeifei/followers","following_url":"https://api.github.com/users/yuruofeifei/following{/other_user}","gists_url":"https://api.github.com/users/yuruofeifei/gists{/gist_id}","starred_url":"https://api.github.com/users/yuruofeifei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuruofeifei/subscriptions","organizations_url":"https://api.github.com/users/yuruofeifei/orgs","repos_url":"https://api.github.com/users/yuruofeifei/repos","events_url":"https://api.github.com/users/yuruofeifei/events{/privacy}","received_events_url":"https://api.github.com/users/yuruofeifei/received_events","type":"User","site_admin":false},"repo":{"id":103699069,"name":"mms","full_name":"yuruofeifei/mms","owner":{"login":"yuruofeifei","id":3958379,"avatar_url":"https://avatars2.githubusercontent.com/u/3958379?v=4","gravatar_id":"","url":"https://api.github.com/users/yuruofeifei","html_url":"https://github.com/yuruofeifei","followers_url":"https://api.github.com/users/yuruofeifei/followers","following_url":"https://api.github.com/users/yuruofeifei/following{/other_user}","gists_url":"https://api.github.com/users/yuruofeifei/gists{/gist_id}","starred_url":"https://api.github.com/users/yuruofeifei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuruofeifei/subscriptions","organizations_url":"https://api.github.com/users/yuruofeifei/orgs","repos_url":"https://api.github.com/users/yuruofeifei/repos","events_url":"https://api.github.com/users/yuruofeifei/events{/privacy}","received_events_url":"https://api.github.com/users/yuruofeifei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuruofeifei/mms","description":"MXNet Model Serving","fork":false,"url":"https://api.github.com/repos/yuruofeifei/mms","forks_url":"https://api.github.com/repos/yuruofeifei/mms/forks","keys_url":"https://api.github.com/repos/yuruofeifei/mms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuruofeifei/mms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuruofeifei/mms/teams","hooks_url":"https://api.github.com/repos/yuruofeifei/mms/hooks","issue_events_url":"https://api.github.com/repos/yuruofeifei/mms/issues/events{/number}","events_url":"https://api.github.com/repos/yuruofeifei/mms/events","assignees_url":"https://api.github.com/repos/yuruofeifei/mms/assignees{/user}","branches_url":"https://api.github.com/repos/yuruofeifei/mms/branches{/branch}","tags_url":"https://api.github.com/repos/yuruofeifei/mms/tags","blobs_url":"https://api.github.com/repos/yuruofeifei/mms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuruofeifei/mms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuruofeifei/mms/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuruofeifei/mms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuruofeifei/mms/statuses/{sha}","languages_url":"https://api.github.com/repos/yuruofeifei/mms/languages","stargazers_url":"https://api.github.com/repos/yuruofeifei/mms/stargazers","contributors_url":"https://api.github.com/repos/yuruofeifei/mms/contributors","subscribers_url":"https://api.github.com/repos/yuruofeifei/mms/subscribers","subscription_url":"https://api.github.com/repos/yuruofeifei/mms/subscription","commits_url":"https://api.github.com/repos/yuruofeifei/mms/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuruofeifei/mms/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuruofeifei/mms/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuruofeifei/mms/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuruofeifei/mms/contents/{+path}","compare_url":"https://api.github.com/repos/yuruofeifei/mms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuruofeifei/mms/merges","archive_url":"https://api.github.com/repos/yuruofeifei/mms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuruofeifei/mms/downloads","issues_url":"https://api.github.com/repos/yuruofeifei/mms/issues{/number}","pulls_url":"https://api.github.com/repos/yuruofeifei/mms/pulls{/number}","milestones_url":"https://api.github.com/repos/yuruofeifei/mms/milestones{/number}","notifications_url":"https://api.github.com/repos/yuruofeifei/mms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuruofeifei/mms/labels{/name}","releases_url":"https://api.github.com/repos/yuruofeifei/mms/releases{/id}","deployments_url":"https://api.github.com/repos/yuruofeifei/mms/deployments","created_at":"2017-09-15T20:36:56Z","updated_at":"2017-09-17T05:46:59Z","pushed_at":"2017-09-22T03:25:02Z","git_url":"git://github.com/yuruofeifei/mms.git","ssh_url":"git@github.com:yuruofeifei/mms.git","clone_url":"https://github.com/yuruofeifei/mms.git","svn_url":"https://github.com/yuruofeifei/mms","homepage":"","size":42729,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yuruofeifei/mms/pulls/3"},"html":{"href":"https://github.com/yuruofeifei/mms/pull/3"},"issue":{"href":"https://api.github.com/repos/yuruofeifei/mms/issues/3"},"comments":{"href":"https://api.github.com/repos/yuruofeifei/mms/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/yuruofeifei/mms/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/yuruofeifei/mms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuruofeifei/mms/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/yuruofeifei/mms/statuses/59f847158b4ed0a22305ec3707b342752a96bec8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kevinthesun"}}