Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AICPS/hw2vec
/ functions
Functions
78 in github.com/AICPS/hw2vec
⨍
Functions
78
◇
Types & classes
15
↓ 8 callers
Method
embed_graph
(self, x, edge_index, batch)
hw2vec/graph2vec/models.py:124
↓ 6 callers
Method
mlp
(self, x)
hw2vec/graph2vec/models.py:142
↓ 5 callers
Method
process
(self, hw_path)
hw2vec/hw2graph.py:489
↓ 4 callers
Method
metric_calc
(self, loss, labels, preds, header)
hw2vec/graph2vec/trainers.py:75
↓ 3 callers
Method
__init__
(self, config)
hw2vec/graph2vec/models.py:67
↓ 3 callers
Method
cache_graph_data
(self, data_pkl_path)
hw2vec/hw2graph.py:152
↓ 3 callers
Method
evaluate
(self, epoch_idx, data_loader, valid_data_loader)
hw2vec/graph2vec/trainers.py:280
↓ 3 callers
Method
find_hw_project_folders
(self)
hw2vec/hw2graph.py:386
↓ 3 callers
Method
generate
(self)
hw2vec/utilities.py:110
↓ 3 callers
Method
getBinddict
(self)
hw2vec/utilities.py:158
↓ 3 callers
Method
getTerms
(self)
hw2vec/utilities.py:155
↓ 3 callers
Method
get_graphs
(self)
hw2vec/hw2graph.py:121
↓ 3 callers
Method
load_model
(self, model_config_path, model_weight_path)
hw2vec/graph2vec/models.py:88
↓ 3 callers
Method
metric_print
(self, loss, acc, f1, conf_mtx, precision, recall, header)
hw2vec/graph2vec/trainers.py:92
↓ 3 callers
Method
preprocess
(self, verilog_dir)
hw2vec/hw2graph.py:476
↓ 3 callers
Method
process
(self, verilog_file)
hw2vec/hw2graph.py:173
↓ 3 callers
Method
set_graph_conv
(self, convs)
hw2vec/graph2vec/models.py:107
↓ 3 callers
Method
set_graph_pool
(self, pool_layer)
hw2vec/graph2vec/models.py:115
↓ 3 callers
Method
set_graph_readout
(self, typeofreadout)
hw2vec/graph2vec/models.py:118
↓ 3 callers
Method
set_output_layer
(self, layer)
hw2vec/graph2vec/models.py:121
↓ 3 callers
Method
train
(self, data_loader, valid_data_loader)
hw2vec/graph2vec/trainers.py:205
↓ 2 callers
Method
__init__
(self, cfg, task)
hw2vec/graph2vec/trainers.py:301
↓ 2 callers
Method
build
(self, model, path=None)
hw2vec/graph2vec/trainers.py:43
↓ 2 callers
Method
code2graph
(self, verilog_dir, profile=True)
hw2vec/hw2graph.py:464
↓ 2 callers
Method
getFrameTable
(self)
hw2vec/utilities.py:136
↓ 2 callers
Method
inference
(self, data_loader)
hw2vec/graph2vec/trainers.py:152
↓ 2 callers
Method
inference
(self, data_loader)
hw2vec/graph2vec/trainers.py:244
↓ 2 callers
Function
isInt
(s)
hw2vec/utilities.py:87
↓ 2 callers
Method
process
(self, nx_graph)
hw2vec/hw2graph.py:57
↓ 2 callers
Method
read_graph_data_from_cache
(self, data_pkl_path)
hw2vec/hw2graph.py:156
↓ 2 callers
Method
save_model
(self, model_config_path, model_weight_path)
hw2vec/graph2vec/models.py:71
↓ 2 callers
Method
split_dataset
(self, ratio, seed, dataset)
hw2vec/hw2graph.py:129
↓ 2 callers
Method
visualize_embeddings
(self, data_loader, path=None)
hw2vec/graph2vec/trainers.py:47
↓ 1 callers
Method
_add_node
(self, graph, parent, child, cur_dict)
hw2vec/hw2graph.py:280
↓ 1 callers
Method
_generate_ast_dict
(self, ast_node)
hw2vec/hw2graph.py:262
↓ 1 callers
Method
evaluate
(self, epoch_idx, train_loader, test_loader)
hw2vec/graph2vec/trainers.py:178
↓ 1 callers
Method
flatten
(self, input_path, flattened_hw_path)
hw2vec/hw2graph.py:395
↓ 1 callers
Method
generate_pairs
(self)
hw2vec/hw2graph.py:115
↓ 1 callers
Method
get_class_weights
(self, train_graphs)
hw2vec/hw2graph.py:146
↓ 1 callers
Method
get_embeddings
(self, data_loader)
hw2vec/graph2vec/trainers.py:60
↓ 1 callers
Method
get_pairs
(self)
hw2vec/hw2graph.py:124
↓ 1 callers
Method
inference_epoch_ip
(self, graph1, graph2)
hw2vec/graph2vec/trainers.py:142
↓ 1 callers
Method
inference_epoch_tj
(self, data)
hw2vec/graph2vec/trainers.py:236
↓ 1 callers
Method
normalize
Normalization is a step to replace the label of a node to a value -> replace all the variable name and numeric values with a high-level
hw2vec/hw2graph.py:64
↓ 1 callers
Function
process_graph
(cfg, folder_path, hw2graph, profile=True)
hw2vec/scripts/graph_processer.py:10
↓ 1 callers
Function
process_graphs
(cfg)
hw2vec/scripts/graph_processer.py:28
↓ 1 callers
Method
remove_comments
(self, hw_path)
hw2vec/hw2graph.py:406
↓ 1 callers
Method
remove_underscores
(self, hw_path)
hw2vec/hw2graph.py:421
↓ 1 callers
Method
rename_topModule
(self, hw_path)
hw2vec/hw2graph.py:429
↓ 1 callers
Method
train_epoch_ip
(self, graph1, graph2, labels)
hw2vec/graph2vec/trainers.py:131
↓ 1 callers
Method
train_epoch_tj
(self, data)
hw2vec/graph2vec/trainers.py:227
↓ 1 callers
Function
use_case_1
(cfg, hw_design_dir_path, pretrained_model_weight_path, pretrained_model_cfg_path)
examples/use_case_1.py:7
Method
__init__
(self, args)
hw2vec/config.py:16
Method
__init__
(self, filelist, topmodule='TOP', noreorder=False, nobind=False, preprocess_include=None,
hw2vec/utilities.py:95
Method
__init__
(self, cfg)
hw2vec/hw2graph.py:33
Method
__init__
(self)
hw2vec/hw2graph.py:170
Method
__init__
(self)
hw2vec/hw2graph.py:231
Method
__init__
(self)
hw2vec/hw2graph.py:303
Method
__init__
(self, cfg)
hw2vec/hw2graph.py:383
Method
__init__
(self, cfg)
hw2vec/graph2vec/trainers.py:34
Method
__init__
(self, cfg)
hw2vec/graph2vec/trainers.py:102
Method
__init__
(self, cfg, class_weights=None)
hw2vec/graph2vec/trainers.py:197
Method
__init__
(self, type, in_channels, out_channels)
hw2vec/graph2vec/models.py:21
Method
__init__
(self, type, in_channels, poolratio)
hw2vec/graph2vec/models.py:33
Method
__init__
(self, type)
hw2vec/graph2vec/models.py:47
Method
embed_node
(self, x, edge_index)
hw2vec/graph2vec/models.py:136
Method
forward
(self, x, edge_index)
hw2vec/graph2vec/models.py:29
Method
forward
(self, x, edge_index, batch)
hw2vec/graph2vec/models.py:43
Method
forward
(self, x, batch)
hw2vec/graph2vec/models.py:51
Method
getConsts
(self)
hw2vec/utilities.py:150
Method
getInstances
(self)
hw2vec/utilities.py:140
Method
getSignals
(self)
hw2vec/utilities.py:145
Method
process
(self, verilog_file)
hw2vec/hw2graph.py:248
Method
process
(self, verilog_file)
hw2vec/hw2graph.py:306
Function
profilegraph
(func)
hw2vec/utilities.py:39
Function
profileit
(func)
hw2vec/utilities.py:15
Method
train
(self, train_loader, test_loader)
hw2vec/graph2vec/trainers.py:108
Function
wrapper
(*args, **kwargs)
hw2vec/utilities.py:16