@@ -3207,10 +3207,17 @@ Ptr<ExtendedInst> ExtendedInst_des(FILE *in) {
32073207
32083208Ptr<TensorScalarCumulative> TensorScalarCumulative_des (FILE *in) {
32093209 u8 t, c, l;
3210- if (!deserialize_tag (in, &t, &c, &l))
3211- throw std::runtime_error (" Could not find tag" );
3212- if (t != 208 || c != 0 || l != 9 )
3213- throw std::runtime_error (" Invalid Tag" );
3210+ if (!deserialize_tag (in, &t, &c, &l)) {
3211+ std::ostringstream msg;
3212+ msg << " Could not find tag, expecting TensorScalarCumulative:208,0" ;
3213+ throw std::runtime_error (msg.str ());
3214+ }
3215+ if (t != 208 || c != 0 || l != 9 ) {
3216+ std::ostringstream msg;
3217+ msg << " Expecting TensorScalarCumulative:(208,0,9)" ;
3218+ msg << " got:(" << (int )t << " ," << (int )c << " ," << (int )l << " )" ;
3219+ throw std::runtime_error (msg.str ());
3220+ }
32143221 Ptr<TensorScalarCumulative> x = ptr<TensorScalarCumulative>();
32153222 x->dst = TensorRef_des (in);
32163223 x->src = TensorRef_des (in);
@@ -3224,11 +3231,32 @@ Ptr<TensorScalarCumulative> TensorScalarCumulative_des(FILE *in) {
32243231 return x;
32253232}
32263233
3234+ Ptr<NcNGather> NcNGather_des (FILE *in) {
3235+ u8 t, c, l;
3236+ if (!deserialize_tag (in, &t, &c, &l)) {
3237+ std::ostringstream msg;
3238+ msg << " Could not find tag, expecting NcNGather:209,0" ;
3239+ throw std::runtime_error (msg.str ());
3240+ }
3241+ if (t != 209 || c != 0 || l != 4 ) {
3242+ std::ostringstream msg;
3243+ msg << " Expecting NcNGather:(209,0,4)" ;
3244+ msg << " got:(" << (int )t << " ," << (int )c << " ," << (int )l << " )" ;
3245+ throw std::runtime_error (msg.str ());
3246+ }
3247+ Ptr<NcNGather> x = ptr<NcNGather>();
3248+ x->dst = TensorRef_des (in);
3249+ x->data = TensorRef_des (in);
3250+ x->indices = TensorRef_des (in);
3251+ x->dtype = Option_Dtype_des (in);
3252+ return x;
3253+ }
3254+
32273255Ptr<Operator> Operator_des (FILE *in) {
32283256 u8 t, c, l;
32293257 if (!deserialize_tag (in, &t, &c, &l))
32303258 throw std::runtime_error (" Could not read tag" );
3231- if (t != 209 )
3259+ if (t != 210 )
32323260 throw std::runtime_error (" Unexpected type tag" );
32333261 switch (c) {
32343262 case 0 : {
@@ -3777,6 +3805,14 @@ Ptr<Operator> Operator_des(FILE *in) {
37773805 return x;
37783806 break ;
37793807 }
3808+ case 67 : {
3809+ if (l != 1 )
3810+ throw std::runtime_error (" Wrong number of elements" );
3811+ Ptr<OperatorNcNGatherWrapper> x = ptr<OperatorNcNGatherWrapper>();
3812+ x->op = NcNGather_des (in);
3813+ return x;
3814+ break ;
3815+ }
37803816 default :
37813817 throw std::runtime_error (" Invalid value tag" );
37823818 }
0 commit comments