* [REFACTOR][NODE][RUNTIME] Move Node to the new Object protocol. This PR removes the original node system, and make node as a subclass of Object. This is a major refactor towards a better unified runtime object system. List of changes in the refactor: - We now hide data_ field, use Downcast explicitly to get a sub-class object. - Removed the node system FFI in python. - Removed the node C API, instead use PackedFunc for list and get attrs. - Change relay::Op::set_attr_type_key(attr_key_name) to relay::Op::set_attr_type<AttrType>(). - This change was necessary because of the new Object registration mechanism. - Subsequent changes to the op registrations - The change revealed a few previous problems that is now fixed. - Patched up a few missing node type registration. - Now we will raise an error if we register object that is not registered. - The original node.h and container.h are kept in the same location. - Calling convention: kObjectHandle now equals the old kNodeHandle, kNodeHandle is removed. - IRFunctor now dispatches on ObjectRef. - Update to the new type checking API: is_type, derived_from are replaced by IsInstance. - Removed .hash member function, instead use C++ convention hasher functors. * Address review comments
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
quantize | Loading commit data... | |
alter_op_layout.cc | Loading commit data... | |
alter_op_layout.h | Loading commit data... | |
canonicalize_cast.cc | Loading commit data... | |
canonicalize_ops.cc | Loading commit data... | |
combine_parallel_conv2d.cc | Loading commit data... | |
combine_parallel_dense.cc | Loading commit data... | |
combine_parallel_op.cc | Loading commit data... | |
combine_parallel_op.h | Loading commit data... | |
combine_parallel_op_batch.cc | Loading commit data... | |
combine_parallel_op_batch.h | Loading commit data... | |
de_duplicate.cc | Loading commit data... | |
dead_code.cc | Loading commit data... | |
dependency_graph.cc | Loading commit data... | |
dependency_graph.h | Loading commit data... | |
device_annotation.cc | Loading commit data... | |
eliminate_common_subexpr.cc | Loading commit data... | |
eta_expand.cc | Loading commit data... | |
expr_subst.cc | Loading commit data... | |
expr_subst.h | Loading commit data... | |
feature.cc | Loading commit data... | |
fold_constant.cc | Loading commit data... | |
fold_scale_axis.cc | Loading commit data... | |
forward_rewrite.cc | Loading commit data... | |
fuse_ops.cc | Loading commit data... | |
gradient.cc | Loading commit data... | |
kind_check.cc | Loading commit data... | |
legalize.cc | Loading commit data... | |
let_list.h | Loading commit data... | |
mac_count.cc | Loading commit data... | |
match_exhaustion.cc | Loading commit data... | |
partial_eval.cc | Loading commit data... | |
pass_manager.cc | Loading commit data... | |
pass_util.h | Loading commit data... | |
pattern_util.h | Loading commit data... | |
print_ir.cc | Loading commit data... | |
simplify_inference.cc | Loading commit data... | |
to_a_normal_form.cc | Loading commit data... | |
to_cps.cc | Loading commit data... | |
to_graph_normal_form.cc | Loading commit data... | |
type_infer.cc | Loading commit data... | |
type_solver.cc | Loading commit data... | |
type_solver.h | Loading commit data... | |
util.cc | Loading commit data... | |
well_formed.cc | Loading commit data... |