code: public static void addTypeTypeRelativeToNDArray(FlatBufferBuilder bufferBuilder,INDArray arr) {
          switch(arr.data().dataType()) {
              case LONG:
              case INT:
                  Tensor.addTypeType(bufferBuilder,Type.Int);
                  break;
              case FLOAT:
                  Tensor.addTypeType(bufferBuilder,Type.FloatingPoint);
                  break;
              case DOUBLE:
                  Tensor.addTypeType(bufferBuilder,Type.Decimal);
                  break;
          }
      }
docs: Convert the given {@link INDArray}
  data  type to the proper data type for the tensor.
  @param bufferBuilder the buffer builder in use
  @param arr the array to conver tthe data type for