Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for OneHot (0.1 sec)

  1. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      // CHECK: return %0 : tensor<2x3x4x5xf32>
    }
    
    func.func @OneHot(%arg0: tensor<3xi32>, %arg1: tensor<i32>, %arg2: tensor<f32>, %arg3: tensor<f32>) -> tensor<*xf32> {
      %0 = "tf.OneHot"(%arg0, %arg1, %arg2, %arg3) {axis = -1 : i64} : (tensor<3xi32>, tensor<i32>, tensor<f32>, tensor<f32>) -> tensor<*xf32>
      func.return %0: tensor<*xf32>
    
    // CHECK-LABEL: OneHot
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize.cc

      return true;
    }
    
    // Returns true if attr is a DenseIntElementsAttr of int32 or int64 values or an
    // incrementing sequence from 0 to N-1.
    //
    // If such a value is used in an Equal operator, it can be replaced with OneHot.
    bool IsOneHotIndexAttribute(Attribute attr) {
      const auto dense_attr = mlir::dyn_cast_or_null<DenseIntElementsAttr>(attr);
      if (!dense_attr) {
        return false;
      }
      auto index_type = dense_attr.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      let hasOptions = 1;
      let customOption = "ReducerOptions";
    }
    
    def TFL_OneHotOp : TFL_Op<"one_hot", [
        QuantizableResult,
        Pure]> {
      let summary = "OneHot operator";
    
      let description = [{
        Returns a one-hot tensor.The locations represented by indices in `indices`
        take value `on_value`, while all other locations take value `off_value`.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top