Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Indices (0.17 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    //
    // values, indices = tfl.topkv2(%inputs, K)
    // %1 = tfl.slice(values, 0, k)
    // %2 = tfl.slice(indices,0, k)
    // .... (values and indices only used for %1 and %2)
    //
    // %1 or %2 can be absent. If values and indices are only used here,
    // this pattern can be replaced with (conceptually)
    //
    // %values, %indices = tfl.topkv2(%inputs, k)
    // replace all use of %1 with values
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

                    "of indices");
        }
      }
    
      if ((indices_rank == 0) || (indices_rank == batch_dims_i)) {
        // Scalar indices (output is rank(params) - 1).
        // Erase shape[axis]
        shape.erase(shape.begin() + axis_i);
      } else if (indices_rank == 1) {
        // Vector indices (output is rank(params)).
        // Copy indices.shape into params.shape[axis]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        take value `on_value`, while all other locations take value `off_value`.
    
        If the input `indices` is rank `N`, the output will have rank `N+1`,
        The new axis is created at dimension `axis` (default: the new axis is
        appended at the end).
      }];
    
      let arguments = (ins
        TFL_TensorOf<[I32, I64]>:$indices,
        TFL_I32Tensor:$depth,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    }
    
    void OneHotOp::build(OpBuilder &builder, OperationState &result, Value indices,
                         Value depth, Value on_value, Value off_value,
                         IntegerAttr axis) {
      build(builder, result,
            InferOneHotOpType(indices, depth, on_value, off_value, axis), indices,
            depth, on_value, off_value, axis);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

              op.getLoc(), cast_type, clamp_min, cast_op, clamp_max);
          start_indices_vector.push_back(clamped_index);
        }
    
        // Pack individual start indices to start indices tensor.
        Type start_indices_type = RankedTensorType::get(
            {static_cast<int64_t>(start_indices_vector.size())},
            signed_start_indices_element_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      // CHECK:  %values, %indices = "tfl.topk_v2"(%arg0, %cst) : (tensor<1x4xf32>, tensor<i32>) -> (tensor<1x4xf32>, tensor<1x4xi32>)
      // CHECK:  return %values, %indices : tensor<1x4xf32>, tensor<1x4xi32>
    }
    
    func.func @approx_top_k_with_min_k(%arg0: tensor<1x4xf32>) -> (tensor<1x4xf32>, tensor<1x4xi32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                                 .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];
            if (vector_indices[j] > max_of_indices) {
              max_of_indices = vector_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)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

          int64_t& inferred_dim = (*inferred_item_shape)[i];
          int64_t dim = item_shape[i];
          if (ShapedType::isDynamic(inferred_dim)) inferred_dim = dim;
        }
      }
    
      // If all indices are constants, then verify that they cover all indices in
      // the range [0, max_index] and the output type is legal.
      if (all_indices_const) {
        for (int32_t i = 0; i <= max_index; i++) {
          if (!index_values.count(i))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

                   PatternRewriter& rewriter) const override {
        rewriter.replaceOpWithNewOp<TFL::GatherNdOp>(
            op, /*output=*/op.getResult().getType(), /*params=*/op.getOperand(),
            /*indices=*/op.getStartIndices());
      }
    };
    
    // Rewrites quantized stablehlo.dynamic_slice to tfl.slice.
    // TODO: b/322428814 - Add StableHLO quantizer integration tests for ODML.
    class RewriteQuantizedDynamicSliceOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    <a href="#Representability">representable</a> by a value of type
    <code>int</code>; for arrays or constant strings, constant indices must also be in range.
    If both indices are constant, they must satisfy <code>low &lt;= high</code>.
    If the indices are out of range at run time, a <a href="#Run_time_panics">run-time panic</a> occurs.
    </p>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top