docs: public long[] getShapeFromTensor(OnnxProto3.TensorProto tensorProto) {
          val ret = new long[Math.max(2,tensorProto.getDimsCount())];
          int dimCount = tensorProto.getDimsCount();
          if(dimCount >= 2)
              for(int i = 0; i < ret.length; i++) {
                  ret[i] = (int) tensorProto.getDims(i);
              }
          else {
              ret[0] = 1;
              for(int i = 1; i < ret.length; i++) {
                  ret[i] = (int) tensorProto.getDims(i - 1);
              }
          }
  
  
          return ret;
      }