Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for OneHot (0.34 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      func.return %0 : tensor<?x?xf32>
    }
    
    // -----
    
    func.func @testOneHot(%indices: tensor<3xi32>, %depth: tensor<i32>, %on_value: tensor<f32>, %off_value: tensor<f32>) -> tensor<3x5xf32> {
      %result = "tf.OneHot"(%indices, %depth, %on_value, %off_value) {axis = -1 : i64} : (tensor<3xi32>, tensor<i32>, tensor<f32>, tensor<f32>) -> tensor<3x5xf32>
      func.return %result : tensor<3x5xf32>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/vendor/rsc.io/markdown/entity.go

    	"&neArr;":                           "\u21d7",
    	"&nearhk;":                          "\u2924",
    	"&nearr;":                           "\u2197",
    	"&nearrow;":                         "\u2197",
    	"&nedot;":                           "\u2250\u0338",
    	"&nequiv;":                          "\u2262",
    	"&nesear;":                          "\u2928",
    	"&nesim;":                           "\u2242\u0338",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 101K bytes
    - Viewed (0)
Back to top