@@ -16,9 +16,8 @@ static const size_t alignment = 64;
16
16
17
17
runtime::HostTensor::HostTensor (const ngraph::element::Type& element_type,
18
18
const Shape& shape,
19
- void * memory_pointer,
20
- const string& name)
21
- : runtime::Tensor(std::make_shared<ngraph::descriptor::Tensor>(element_type, shape, name))
19
+ void * memory_pointer)
20
+ : runtime::Tensor(std::make_shared<ngraph::descriptor::Tensor>(element_type, shape, " " ))
22
21
, m_memory_pointer(memory_pointer)
23
22
{
24
23
if (get_partial_shape ().is_static () && get_element_type ().is_static ())
@@ -31,31 +30,27 @@ runtime::HostTensor::HostTensor(const ngraph::element::Type& element_type,
31
30
}
32
31
}
33
32
34
- runtime::HostTensor::HostTensor (const element::Type& element_type,
35
- const Shape& shape,
36
- const std::string& name)
37
- : HostTensor(element_type, shape, nullptr , name)
33
+ runtime::HostTensor::HostTensor (const element::Type& element_type, const Shape& shape)
34
+ : HostTensor(element_type, shape, nullptr )
38
35
{
39
36
}
40
37
41
38
runtime::HostTensor::HostTensor (const element::Type& element_type,
42
- const PartialShape& partial_shape,
43
- const std::string& name)
44
- : runtime::Tensor(
45
- std::make_shared<ngraph::descriptor::Tensor>(element_type, partial_shape, name))
39
+ const PartialShape& partial_shape)
40
+ : runtime::Tensor(std::make_shared<ngraph::descriptor::Tensor>(element_type, partial_shape, " " ))
46
41
, m_buffer_size(0 )
47
42
{
48
43
// Defer allocation until ptr is requested
49
44
}
50
45
51
- runtime::HostTensor::HostTensor (const std::string& name )
46
+ runtime::HostTensor::HostTensor ()
52
47
: HostTensor(element::dynamic, PartialShape::dynamic())
53
48
{
54
49
}
55
50
56
51
NGRAPH_SUPPRESS_DEPRECATED_START
57
52
runtime::HostTensor::HostTensor (const Output<Node>& value)
58
- : HostTensor(value.get_element_type(), value.get_partial_shape(), value.get_tensor().get_name() )
53
+ : HostTensor(value.get_element_type(), value.get_partial_shape())
59
54
{
60
55
}
61
56
NGRAPH_SUPPRESS_DEPRECATED_END
@@ -93,7 +88,7 @@ void runtime::HostTensor::allocate_buffer()
93
88
94
89
NGRAPH_SUPPRESS_DEPRECATED_START
95
90
runtime::HostTensor::HostTensor (const std::shared_ptr<op::v0::Constant>& constant)
96
- : HostTensor(constant-> output ( 0 ).get_tensor().get_name() )
91
+ : HostTensor()
97
92
{
98
93
initialize (constant);
99
94
}
0 commit comments