Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetIndicesForElement (0.25 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

          {rank}, IntegerType::get(builder.getContext(), bitwidth));
      return builder.create<TF::ConstOp>(
          loc, DenseElementsAttr::get(result_type, values));
    }
    
    Value GetIndicesForElement(Value index, Value buffer, OpBuilder builder,
                               Location loc) {
      auto buffer_type = mlir::cast<RankedTensorType>(buffer.getType());
      if (buffer_type.getShape().size() == 1) return index;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.h

    Value ReshapeScalarToSizeType(OpBuilder builder, Value scalar, Location loc);
    
    // Creates ops that represent the indices of the slice for an element in the
    // buffer. Requires `index` to have tensor<1xi32> type.
    Value GetIndicesForElement(Value index, Value buffer, OpBuilder builder,
                               Location loc);
    
    // Creates ops that slice the element out of a buffer at the given index.
    // Requires `index` to have tensor<1xi32> type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top