Cleanup IR v7 from the MO (#1008)
* Removed back phase transformations related to IRv7 * Fixed setting value for the input port using the 'set_value' method * Removed front and middle phase transformations related to IRv7 * Cleanup the rest of the Model Optimizer transformations from IRv7 specific transformations * Final cleanup of the deprecated IR v7 related code * Removed 'blobs_as_input' usage in the Model Optimizer. * Removed function '_fuse_add' from the Model Optimizer since it is not used anymore. * Removed 'keep_in_IR' node attribute for FakeQuantize ops in the MO * Disabled failing gpu_engine.user_context test
This commit is contained in:
@@ -138,16 +138,19 @@ class Port:
|
||||
if self.type == 'in':
|
||||
data_node = self.node.in_node(self.idx, control_flow=self.control_flow)
|
||||
const_node = data_node.in_node(control_flow=self.control_flow)
|
||||
|
||||
# Set value to data node
|
||||
data_node.value = value
|
||||
data_node.shape = int64_array(value.shape)
|
||||
|
||||
# Set value to constant producer
|
||||
const_node.value = value
|
||||
const_node.shape = int64_array(value.shape)
|
||||
if const_node.soft_get('type') == 'Const':
|
||||
const_node.value = value
|
||||
const_node.shape = int64_array(value.shape)
|
||||
else:
|
||||
self.node.out_node(self.idx, control_flow=self.control_flow).value = value
|
||||
self.node.out_node(self.idx, control_flow=self.control_flow).shape = int64_array(value.shape)
|
||||
if self.node.has_valid('type') and self.node.type == 'Const':
|
||||
if self.node.soft_get('type') == 'Const':
|
||||
self.node.value = value
|
||||
self.node.shape = int64_array(value.shape)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user