"""
- Copyright (c) 2018 Intel Corporation
+ Copyright (c) 2018-2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
nodes_attributes = {'conv_input': {'value': None, 'kind': 'data'},
'conv_node': {'type': 'Convolution', 'kind': 'op'},
'conv_weights': {'value': FakeValue(None), 'kind': 'data'},
- 'conv_output': {'value': None, 'kind': 'data'}
+ 'conv_output': {'value': None, 'kind': 'data'},
+ 'output_op': { 'kind': 'op', 'op': 'OpOutput'}
}
graph = build_graph(nodes_attributes,
[('conv_input', 'conv_node'),
('conv_weights', 'conv_node'),
- ('conv_node', 'conv_output')],
- {'conv_output': {'is_output': True, 'shape': None},
+ ('conv_node', 'conv_output'),
+ ('conv_output', 'op_output')
+ ],
+ {'conv_output': {'shape': None},
'conv_input': {'shape': np.array([1, 3, 227, 227])},
'conv_weights': {'shape': np.array([64, 3, 3, 3]),
'dim_attrs': ['spatial_dims', 'channel_dims', 'batch_dims', 'axis']},
graph = build_graph(nodes_attributes,
[('conv_input', 'conv_node'),
('conv_weights', 'conv_node'),
- ('conv_node', 'conv_output')],
- {'conv_output': {'is_output': True, 'shape': None},
+ ('conv_node', 'conv_output'),
+ ('conv_output', 'op_output')
+ ],
+ {'conv_output': {'shape': None},
'conv_input': {'shape': None},
'conv_weights': {'shape': None,
'dim_attrs': ['spatial_dims', 'channel_dims', 'batch_dims', 'axis']},
graph = build_graph(nodes_attributes,
[('conv_input', 'conv_node'),
('conv_weights', 'conv_node'),
- ('conv_node', 'conv_output')],
- {'conv_output': {'is_output': True, 'shape': None},
+ ('conv_node', 'conv_output'),
+ ('conv_output', 'op_output')
+ ],
+ {'conv_output': {'shape': None},
'conv_input': {'shape': np.array([1, 21, 16, 16])},
'conv_weights': {'shape': np.array([1, 21, 4, 4]),
'dim_attrs': ['spatial_dims', 'channel_dims', 'batch_dims', 'axis']},
graph = build_graph(nodes_attributes,
[('conv_input', 'conv_node'),
('conv_weights', 'conv_node'),
- ('conv_node', 'conv_output')],
- {'conv_output': {'is_output': True, 'shape': None},
+ ('conv_node', 'conv_output'),
+ ('conv_output', 'op_output')
+ ],
+ {'conv_output': {'shape': None},
'conv_input': {'shape': None},
'conv_weights': {'shape': np.array([1, 21, 16, 16]),
'dim_attrs': ['spatial_dims', 'channel_dims', 'batch_dims', 'axis']},
[
('conv_input', 'conv_node'),
('conv_weights', 'conv_node'),
- ('conv_node', 'conv_output')
+ ('conv_node', 'conv_output'),
+ ('conv_output', 'op_output')
],
{
'conv_output': {
- 'is_output': True,
'shape': None
},
'conv_input': {
[
('conv_input', 'conv_node'),
('conv_weights', 'conv_node'),
- ('conv_node', 'conv_output')
+ ('conv_node', 'conv_output'),
+ ('conv_output', 'op_output')
],
{
'conv_output': {
- 'is_output': True,
'shape': None
},
'conv_input': {
[
('conv_input', 'conv_node'),
('conv_weights', 'conv_node'),
- ('conv_node', 'conv_output')
+ ('conv_node', 'conv_output'),
+ ('conv_output', 'op_output')
],
{
'conv_output': {
- 'is_output': True,
'shape': None
},
'conv_input': {