{"action":"created","comment":{"url":"https://api.github.com/repos/amzn/MXFusion/pulls/comments/224508781","pull_request_review_id":163894788,"id":224508781,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDUwODc4MQ==","diff_hunk":"@@ -6,22 +6,33 @@ class Operator(FunctionEvaluation):\n     Abstract Operator object for using MXNet operators in MXFusion space.\n     Child classes implement the eval method with their operator and access necessary state through the properties dictionary.\n     \"\"\"\n-    def __init__(self, inputs, outputs, operator_name, properties=None):\n+    def __init__(self, inputs, outputs, operator_name, properties=None, broadcastable=False):\n \n         # TODO Add a flag for broadcastable\n \n         input_names = [v[0] for v in inputs]\n         output_names = [v[0] for v in outputs]\n-        self.properties = properties\n+        self._properties = properties\n         self.name = operator_name\n+        self.broadcastable = broadcastable\n \n         super(Operator, self).__init__(\n-            inputs, outputs, input_names, output_names, broadcastable=False)\n+            inputs, outputs, input_names, output_names, broadcastable=broadcastable)\n \n+    def replicate_self(self, attribute_map=None):\n+        replicant = super(Operator, self).replicate_self(attribute_map)\n+        replicant._properties = self._properties","path":"mxfusion/components/functions/operators/operators.py","position":24,"original_position":22,"commit_id":"2118286c426895f81a2288956753591e67a73e5f","original_commit_id":"2a8956604c43e2e61b1d0281adb77738eafe2d62","user":{"login":"zhenwendai","id":6029658,"node_id":"MDQ6VXNlcjYwMjk2NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6029658?v=4","gravatar_id":"","url":"https://api.github.com/users/zhenwendai","html_url":"https://github.com/zhenwendai","followers_url":"https://api.github.com/users/zhenwendai/followers","following_url":"https://api.github.com/users/zhenwendai/following{/other_user}","gists_url":"https://api.github.com/users/zhenwendai/gists{/gist_id}","starred_url":"https://api.github.com/users/zhenwendai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhenwendai/subscriptions","organizations_url":"https://api.github.com/users/zhenwendai/orgs","repos_url":"https://api.github.com/users/zhenwendai/repos","events_url":"https://api.github.com/users/zhenwendai/events{/privacy}","received_events_url":"https://api.github.com/users/zhenwendai/received_events","type":"User","site_admin":false},"body":"_properties needs to be copied as it is a dict.","created_at":"2018-10-11T16:04:15Z","updated_at":"2018-10-11T16:10:26Z","html_url":"https://github.com/amzn/MXFusion/pull/34#discussion_r224508781","pull_request_url":"https://api.github.com/repos/amzn/MXFusion/pulls/34","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/amzn/MXFusion/pulls/comments/224508781"},"html":{"href":"https://github.com/amzn/MXFusion/pull/34#discussion_r224508781"},"pull_request":{"href":"https://api.github.com/repos/amzn/MXFusion/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/amzn/MXFusion/pulls/34","id":220729209,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNzI5MjA5","html_url":"https://github.com/amzn/MXFusion/pull/34","diff_url":"https://github.com/amzn/MXFusion/pull/34.diff","patch_url":"https://github.com/amzn/MXFusion/pull/34.patch","issue_url":"https://api.github.com/repos/amzn/MXFusion/issues/34","number":34,"state":"open","locked":false,"title":"Add support for MXNet operators.","user":{"login":"meissnereric","id":6857699,"node_id":"MDQ6VXNlcjY4NTc2OTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6857699?v=4","gravatar_id":"","url":"https://api.github.com/users/meissnereric","html_url":"https://github.com/meissnereric","followers_url":"https://api.github.com/users/meissnereric/followers","following_url":"https://api.github.com/users/meissnereric/following{/other_user}","gists_url":"https://api.github.com/users/meissnereric/gists{/gist_id}","starred_url":"https://api.github.com/users/meissnereric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meissnereric/subscriptions","organizations_url":"https://api.github.com/users/meissnereric/orgs","repos_url":"https://api.github.com/users/meissnereric/repos","events_url":"https://api.github.com/users/meissnereric/events{/privacy}","received_events_url":"https://api.github.com/users/meissnereric/received_events","type":"User","site_admin":false},"body":"*Issue #25*\r\n\r\n*Description of changes:*\r\nThis change has the base classes and logic for adding and using MXNet operators in MXFusion space.\r\nI will update the PR with additional operators, just getting the baseline up for review.\r\n\r\nBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.\r\n","created_at":"2018-10-05T14:53:51Z","updated_at":"2018-10-11T16:10:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f60cf575fc81e8d0f27388945945babe35d720d3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/amzn/MXFusion/pulls/34/commits","review_comments_url":"https://api.github.com/repos/amzn/MXFusion/pulls/34/comments","review_comment_url":"https://api.github.com/repos/amzn/MXFusion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amzn/MXFusion/issues/34/comments","statuses_url":"https://api.github.com/repos/amzn/MXFusion/statuses/2118286c426895f81a2288956753591e67a73e5f","head":{"label":"meissnereric:operators","ref":"operators","sha":"2118286c426895f81a2288956753591e67a73e5f","user":{"login":"meissnereric","id":6857699,"node_id":"MDQ6VXNlcjY4NTc2OTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6857699?v=4","gravatar_id":"","url":"https://api.github.com/users/meissnereric","html_url":"https://github.com/meissnereric","followers_url":"https://api.github.com/users/meissnereric/followers","following_url":"https://api.github.com/users/meissnereric/following{/other_user}","gists_url":"https://api.github.com/users/meissnereric/gists{/gist_id}","starred_url":"https://api.github.com/users/meissnereric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meissnereric/subscriptions","organizations_url":"https://api.github.com/users/meissnereric/orgs","repos_url":"https://api.github.com/users/meissnereric/repos","events_url":"https://api.github.com/users/meissnereric/events{/privacy}","received_events_url":"https://api.github.com/users/meissnereric/received_events","type":"User","site_admin":false},"repo":{"id":146870219,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY4NzAyMTk=","name":"MXFusion","full_name":"meissnereric/MXFusion","private":false,"owner":{"login":"meissnereric","id":6857699,"node_id":"MDQ6VXNlcjY4NTc2OTk=","avatar_url":"https://avatars1.githubusercontent.com/u/6857699?v=4","gravatar_id":"","url":"https://api.github.com/users/meissnereric","html_url":"https://github.com/meissnereric","followers_url":"https://api.github.com/users/meissnereric/followers","following_url":"https://api.github.com/users/meissnereric/following{/other_user}","gists_url":"https://api.github.com/users/meissnereric/gists{/gist_id}","starred_url":"https://api.github.com/users/meissnereric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meissnereric/subscriptions","organizations_url":"https://api.github.com/users/meissnereric/orgs","repos_url":"https://api.github.com/users/meissnereric/repos","events_url":"https://api.github.com/users/meissnereric/events{/privacy}","received_events_url":"https://api.github.com/users/meissnereric/received_events","type":"User","site_admin":false},"html_url":"https://github.com/meissnereric/MXFusion","description":"Modular Probabilistic Programming on MXNet","fork":true,"url":"https://api.github.com/repos/meissnereric/MXFusion","forks_url":"https://api.github.com/repos/meissnereric/MXFusion/forks","keys_url":"https://api.github.com/repos/meissnereric/MXFusion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meissnereric/MXFusion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meissnereric/MXFusion/teams","hooks_url":"https://api.github.com/repos/meissnereric/MXFusion/hooks","issue_events_url":"https://api.github.com/repos/meissnereric/MXFusion/issues/events{/number}","events_url":"https://api.github.com/repos/meissnereric/MXFusion/events","assignees_url":"https://api.github.com/repos/meissnereric/MXFusion/assignees{/user}","branches_url":"https://api.github.com/repos/meissnereric/MXFusion/branches{/branch}","tags_url":"https://api.github.com/repos/meissnereric/MXFusion/tags","blobs_url":"https://api.github.com/repos/meissnereric/MXFusion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meissnereric/MXFusion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meissnereric/MXFusion/git/refs{/sha}","trees_url":"https://api.github.com/repos/meissnereric/MXFusion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meissnereric/MXFusion/statuses/{sha}","languages_url":"https://api.github.com/repos/meissnereric/MXFusion/languages","stargazers_url":"https://api.github.com/repos/meissnereric/MXFusion/stargazers","contributors_url":"https://api.github.com/repos/meissnereric/MXFusion/contributors","subscribers_url":"https://api.github.com/repos/meissnereric/MXFusion/subscribers","subscription_url":"https://api.github.com/repos/meissnereric/MXFusion/subscription","commits_url":"https://api.github.com/repos/meissnereric/MXFusion/commits{/sha}","git_commits_url":"https://api.github.com/repos/meissnereric/MXFusion/git/commits{/sha}","comments_url":"https://api.github.com/repos/meissnereric/MXFusion/comments{/number}","issue_comment_url":"https://api.github.com/repos/meissnereric/MXFusion/issues/comments{/number}","contents_url":"https://api.github.com/repos/meissnereric/MXFusion/contents/{+path}","compare_url":"https://api.github.com/repos/meissnereric/MXFusion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meissnereric/MXFusion/merges","archive_url":"https://api.github.com/repos/meissnereric/MXFusion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meissnereric/MXFusion/downloads","issues_url":"https://api.github.com/repos/meissnereric/MXFusion/issues{/number}","pulls_url":"https://api.github.com/repos/meissnereric/MXFusion/pulls{/number}","milestones_url":"https://api.github.com/repos/meissnereric/MXFusion/milestones{/number}","notifications_url":"https://api.github.com/repos/meissnereric/MXFusion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meissnereric/MXFusion/labels{/name}","releases_url":"https://api.github.com/repos/meissnereric/MXFusion/releases{/id}","deployments_url":"https://api.github.com/repos/meissnereric/MXFusion/deployments","created_at":"2018-08-31T09:22:04Z","updated_at":"2018-09-12T14:37:20Z","pushed_at":"2018-10-11T16:07:57Z","git_url":"git://github.com/meissnereric/MXFusion.git","ssh_url":"git@github.com:meissnereric/MXFusion.git","clone_url":"https://github.com/meissnereric/MXFusion.git","svn_url":"https://github.com/meissnereric/MXFusion","homepage":"","size":574,"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,"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":"amzn:develop","ref":"develop","sha":"f9b7c4ff36cdd91be88b95399aa054b42ffb0367","user":{"login":"amzn","id":8594673,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1OTQ2NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/8594673?v=4","gravatar_id":"","url":"https://api.github.com/users/amzn","html_url":"https://github.com/amzn","followers_url":"https://api.github.com/users/amzn/followers","following_url":"https://api.github.com/users/amzn/following{/other_user}","gists_url":"https://api.github.com/users/amzn/gists{/gist_id}","starred_url":"https://api.github.com/users/amzn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amzn/subscriptions","organizations_url":"https://api.github.com/users/amzn/orgs","repos_url":"https://api.github.com/users/amzn/repos","events_url":"https://api.github.com/users/amzn/events{/privacy}","received_events_url":"https://api.github.com/users/amzn/received_events","type":"Organization","site_admin":false},"repo":{"id":143047851,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMwNDc4NTE=","name":"MXFusion","full_name":"amzn/MXFusion","private":false,"owner":{"login":"amzn","id":8594673,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1OTQ2NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/8594673?v=4","gravatar_id":"","url":"https://api.github.com/users/amzn","html_url":"https://github.com/amzn","followers_url":"https://api.github.com/users/amzn/followers","following_url":"https://api.github.com/users/amzn/following{/other_user}","gists_url":"https://api.github.com/users/amzn/gists{/gist_id}","starred_url":"https://api.github.com/users/amzn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amzn/subscriptions","organizations_url":"https://api.github.com/users/amzn/orgs","repos_url":"https://api.github.com/users/amzn/repos","events_url":"https://api.github.com/users/amzn/events{/privacy}","received_events_url":"https://api.github.com/users/amzn/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/amzn/MXFusion","description":"Modular Probabilistic Programming on MXNet","fork":false,"url":"https://api.github.com/repos/amzn/MXFusion","forks_url":"https://api.github.com/repos/amzn/MXFusion/forks","keys_url":"https://api.github.com/repos/amzn/MXFusion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amzn/MXFusion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amzn/MXFusion/teams","hooks_url":"https://api.github.com/repos/amzn/MXFusion/hooks","issue_events_url":"https://api.github.com/repos/amzn/MXFusion/issues/events{/number}","events_url":"https://api.github.com/repos/amzn/MXFusion/events","assignees_url":"https://api.github.com/repos/amzn/MXFusion/assignees{/user}","branches_url":"https://api.github.com/repos/amzn/MXFusion/branches{/branch}","tags_url":"https://api.github.com/repos/amzn/MXFusion/tags","blobs_url":"https://api.github.com/repos/amzn/MXFusion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amzn/MXFusion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amzn/MXFusion/git/refs{/sha}","trees_url":"https://api.github.com/repos/amzn/MXFusion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amzn/MXFusion/statuses/{sha}","languages_url":"https://api.github.com/repos/amzn/MXFusion/languages","stargazers_url":"https://api.github.com/repos/amzn/MXFusion/stargazers","contributors_url":"https://api.github.com/repos/amzn/MXFusion/contributors","subscribers_url":"https://api.github.com/repos/amzn/MXFusion/subscribers","subscription_url":"https://api.github.com/repos/amzn/MXFusion/subscription","commits_url":"https://api.github.com/repos/amzn/MXFusion/commits{/sha}","git_commits_url":"https://api.github.com/repos/amzn/MXFusion/git/commits{/sha}","comments_url":"https://api.github.com/repos/amzn/MXFusion/comments{/number}","issue_comment_url":"https://api.github.com/repos/amzn/MXFusion/issues/comments{/number}","contents_url":"https://api.github.com/repos/amzn/MXFusion/contents/{+path}","compare_url":"https://api.github.com/repos/amzn/MXFusion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amzn/MXFusion/merges","archive_url":"https://api.github.com/repos/amzn/MXFusion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amzn/MXFusion/downloads","issues_url":"https://api.github.com/repos/amzn/MXFusion/issues{/number}","pulls_url":"https://api.github.com/repos/amzn/MXFusion/pulls{/number}","milestones_url":"https://api.github.com/repos/amzn/MXFusion/milestones{/number}","notifications_url":"https://api.github.com/repos/amzn/MXFusion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amzn/MXFusion/labels{/name}","releases_url":"https://api.github.com/repos/amzn/MXFusion/releases{/id}","deployments_url":"https://api.github.com/repos/amzn/MXFusion/deployments","created_at":"2018-07-31T17:47:44Z","updated_at":"2018-10-03T07:24:54Z","pushed_at":"2018-10-11T16:09:05Z","git_url":"git://github.com/amzn/MXFusion.git","ssh_url":"git@github.com:amzn/MXFusion.git","clone_url":"https://github.com/amzn/MXFusion.git","svn_url":"https://github.com/amzn/MXFusion","homepage":"","size":508,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":20,"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":6,"open_issues":20,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amzn/MXFusion/pulls/34"},"html":{"href":"https://github.com/amzn/MXFusion/pull/34"},"issue":{"href":"https://api.github.com/repos/amzn/MXFusion/issues/34"},"comments":{"href":"https://api.github.com/repos/amzn/MXFusion/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/amzn/MXFusion/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/amzn/MXFusion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amzn/MXFusion/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/amzn/MXFusion/statuses/2118286c426895f81a2288956753591e67a73e5f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zhenwendai"}}