@@ -3232,11 +3232,32 @@ Ptr<TensorScalarCumulative> TensorScalarCumulative_des(FILE *in) {
32323232 return x;
32333233}
32343234
3235+ Ptr<NcNGather> NcNGather_des (FILE *in) {
3236+ u8 t, c, l;
3237+ if (!deserialize_tag (in, &t, &c, &l)) {
3238+ std::ostringstream msg;
3239+ msg << " Could not find tag, expecting NcNGather:209,0" ;
3240+ throw std::runtime_error (msg.str ());
3241+ }
3242+ if (t != 209 || c != 0 || l != 4 ) {
3243+ std::ostringstream msg;
3244+ msg << " Expecting NcNGather:(209,0,4)" ;
3245+ msg << " got:(" << (int )t << " ," << (int )c << " ," << (int )l << " )" ;
3246+ throw std::runtime_error (msg.str ());
3247+ }
3248+ Ptr<NcNGather> x = ptr<NcNGather>();
3249+ x->dst = TensorRef_des (in);
3250+ x->data = TensorRef_des (in);
3251+ x->indices = TensorRef_des (in);
3252+ x->dtype = Option_Dtype_des (in);
3253+ return x;
3254+ }
3255+
32353256Ptr<Operator> Operator_des (FILE *in) {
32363257 u8 t, c, l;
32373258 if (!deserialize_tag (in, &t, &c, &l))
32383259 throw std::runtime_error (" Could not read tag" );
3239- if (t != 209 )
3260+ if (t != 210 )
32403261 throw std::runtime_error (" Unexpected type tag" );
32413262 switch (c) {
32423263 case 0 : {
@@ -3785,6 +3806,14 @@ Ptr<Operator> Operator_des(FILE *in) {
37853806 return x;
37863807 break ;
37873808 }
3809+ case 67 : {
3810+ if (l != 1 )
3811+ throw std::runtime_error (" Wrong number of elements" );
3812+ Ptr<OperatorNcNGatherWrapper> x = ptr<OperatorNcNGatherWrapper>();
3813+ x->op = NcNGather_des (in);
3814+ return x;
3815+ break ;
3816+ }
37883817 default :
37893818 throw std::runtime_error (" Invalid value tag" );
37903819 }
0 commit comments