Commit 7f857eff authored by Philipp  Trunschke's avatar Philipp Trunschke
Browse files

bugfix[pybind11] reorder constructors for tt/ht

parent 1b37d124
Pipeline #1428 failed with stages
in 12 minutes and 22 seconds
......@@ -27,13 +27,13 @@
void expose_htnetwork(module& m) {
class_<HTTensor, TensorNetwork>(m,"HTTensor")
.def(init<const HTTensor &>())
.def(init<const Tensor&>())
.def(init<const Tensor&, value_t>())
.def(init<const Tensor&, value_t, size_t>())
.def(init<const Tensor&, value_t, TensorNetwork::RankTuple>())
.def(init<Tensor::DimensionTuple>())
.def(init<size_t>())
.def(init<const HTTensor &>())
.def("get_component", &HTTensor::get_component)
.def("set_component", &HTTensor::set_component)
.def_readonly("canonicalized", &HTTensor::canonicalized)
......
......@@ -2,13 +2,13 @@
void expose_ttnetwork(module& m) {
class_<TTTensor, TensorNetwork>(m, "TTTensor")
.def(init<const TTTensor &>())
.def(init<const Tensor&>())
.def(init<const Tensor&, value_t>())
.def(init<const Tensor&, value_t, size_t>())
.def(init<const Tensor&, value_t, TensorNetwork::RankTuple>())
.def(init<Tensor::DimensionTuple>())
.def(init<size_t>())
.def(init<const TTTensor &>())
.def("get_component", &TTTensor::get_component)
.def("set_component", &TTTensor::set_component)
.def_readonly("canonicalized", &TTTensor::canonicalized)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment