Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setIndices (0.55 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

          rewriter.replaceOpWithNewOp<mhlo::GatherOp>(
              op, op.getType(), op.getParams(), op.getIndices(), dims_attr,
              GetI64ElementsAttr(slice_sizes, &rewriter));
        } else {
          rewriter.replaceOpWithNewOp<mhlo::DynamicGatherOp>(
              op, op.getType(), op.getParams(), op.getIndices(), slice_sizes_value,
              dims_attr);
        }
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          axis.getNumElements() != 1 ||
          !axis.getSplatValue<llvm::APInt>().isZero()) {
        return {};
      }
    
      DenseIntElementsAttr indices;
      if (!matchPattern(op.getIndices(), m_Constant(&indices)) ||
          indices.getType().getRank() != 1 || port[1] >= indices.getNumElements()) {
        return {};
      }
    
      int64_t input_idx = indices.getValues<IntegerAttr>()[port[1]].getInt();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

            array_segments = tflite::CreateInt32Vector(
                                 builder_, builder_.CreateVector(vector_segments))
                                 .Union();
          }
    
          auto indices = dim_metadata.getIndices();
          std::vector<int> vector_indices(indices.size(), 0);
          int max_of_indices = 0;
          for (int j = 0, end = indices.size(); j < end; j++) {
            vector_indices[j] = indices[j];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top