File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -381,6 +381,7 @@ struct ProviderHost {
381381
382382 // TypeProto
383383 virtual std::unique_ptr<ONNX_NAMESPACE::TypeProto> TypeProto__construct () = 0;
384+ virtual void TypeProto__operator_delete (ONNX_NAMESPACE::TypeProto* p) = 0;
384385 virtual void TypeProto__CopyFrom (ONNX_NAMESPACE::TypeProto* p, const ONNX_NAMESPACE::TypeProto* other) = 0;
385386 virtual bool TypeProto__has_tensor_type (const ONNX_NAMESPACE::TypeProto* p) = 0;
386387 virtual const ONNX_NAMESPACE::TypeProto_Tensor& TypeProto__tensor_type (const ONNX_NAMESPACE::TypeProto* p) = 0;
Original file line number Diff line number Diff line change @@ -366,6 +366,7 @@ struct TypeProto_Sequence final {
366366
367367struct TypeProto final {
368368 static std::unique_ptr<TypeProto> Create () { return g_host->TypeProto__construct (); }
369+ static void operator delete (void * p) { g_host->TypeProto__operator_delete (reinterpret_cast <TypeProto*>(p)); }
369370
370371 bool has_tensor_type () const { return g_host->TypeProto__has_tensor_type (this ); }
371372 const TypeProto_Tensor& tensor_type () const { return g_host->TypeProto__tensor_type (this ); }
Original file line number Diff line number Diff line change @@ -516,6 +516,7 @@ struct ProviderHostImpl : ProviderHost {
516516
517517 // TypeProto (wrapped)
518518 std::unique_ptr<ONNX_NAMESPACE::TypeProto> TypeProto__construct () override { return std::make_unique<ONNX_NAMESPACE::TypeProto>(); }
519+ void TypeProto__operator_delete (ONNX_NAMESPACE::TypeProto* p) override { delete p; }
519520 void TypeProto__CopyFrom (ONNX_NAMESPACE::TypeProto* p, const ONNX_NAMESPACE::TypeProto* other) override { p->CopyFrom (*other); }
520521 bool TypeProto__has_tensor_type (const ONNX_NAMESPACE::TypeProto* p) override { return p->has_tensor_type (); }
521522 const ONNX_NAMESPACE::TypeProto_Tensor& TypeProto__tensor_type (const ONNX_NAMESPACE::TypeProto* p) override { return p->tensor_type (); }
You can’t perform that action at this time.
0 commit comments