Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ONE_HOT (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      depth = 3
      on_value = 5.0
      off_value = 0.0
      axis = -1
    ```
    
    Then output is `[4 x 3]`:
    ```
    output =
      [5.0 0.0 0.0]  // one_hot(0)
      [0.0 0.0 5.0]  // one_hot(2)
      [0.0 0.0 0.0]  // one_hot(-1)
      [0.0 5.0 0.0]  // one_hot(1)
    ```
    
    Suppose that
    ```
      indices = [0, 2, -1, 1]
      depth = 3
      on_value = 0.0
      off_value = 3.0
      axis = 0
    ```
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  2. RELEASE.md

                uprank rank 1 inputs, so these layers can now multi-hot encode
                unbatched multi-dimensional samples.
            *   Added a new output mode `"one_hot"` for `CategoryEncoding`,
                `StringLookup`, `IntegerLookup`, which will encode each element in
                an input batch individually, and automatically append a new output
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top