Skip to content

Commit

Permalink
Merge pull request mlcommons#22 from mlcommons/pyre
Browse files Browse the repository at this point in the history
Update pyre configuration and fix errors in et_generator
  • Loading branch information
srinivas212 authored Feb 7, 2024
2 parents e3a0677 + 5d315b6 commit 13d9961
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .pyre_configuration
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"source_directories": [
"timeline_visualizer",
"et_converter"
"et_converter",
"utils"
],
"search_path": ["/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages"]
}
3 changes: 2 additions & 1 deletion utils/et_generator/et_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from chakra.third_party.utils.protolib import encodeMessage as encode_message
from chakra.et_def.et_def_pb2 import (
NodeType as ChakraNodeType,
Node as ChakraNode,
DoubleList,
FloatList,
Expand Down Expand Up @@ -35,7 +36,7 @@

NODE_ID = 0

def get_node(node_name: str, node_type: int) -> ChakraNode:
def get_node(node_name: str, node_type: ChakraNodeType) -> ChakraNode:
global NODE_ID
node = ChakraNode()
node.id = NODE_ID
Expand Down

0 comments on commit 13d9961

Please sign in to comment.