Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for ClipByValue (0.3 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/tests/replace_cast_hacks_with_tf_xla_ops.mlir

    // CHECK: %[[arg1_floor:.*]] = "tf.Floor"(%[[arg1_add]]
    // CHECK: %[[arg1_clip:.*]] = "tf.ClipByValue"(%[[arg1_floor]]
    // CHECK: %[[arg1_cast:.*]] = "tf.Cast"(%[[arg1_clip]]
    
    // CHECK: %[[arg0_div:.*]] = "tf.Div"(%arg0
    // CHECK: %[[arg0_add:.*]] = "tf.AddV2"(%[[arg0_div]]
    // CHECK: %[[arg0_floor:.*]] = "tf.Floor"(%[[arg0_add]]
    // CHECK: %[[arg0_clip:.*]] = "tf.ClipByValue"(%[[arg0_floor]]
    // CHECK: %[[arg0_cast:.*]] = "tf.Cast"(%[[arg0_clip]]
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 81K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/tests/optimize.mlir

    // CHECK-LABEL: func.func @remove_redundant_cast
    
    // CHECK: %[[CLIPBYVALUE_0:.*]] = "tf.ClipByValue"
    // CHECK-SAME: (tensor<1x100x100x1xi32>, tensor<i32>, tensor<i32>) -> tensor<1x100x100x1xi32>
    // CHECK: %[[CAST_1:.*]] = "tf.Cast"(%[[CLIPBYVALUE_0]]) <{Truncate = false}> : (tensor<1x100x100x1xi32>) -> tensor<1x100x100x1xf32>
    
    // CHECK: %[[CLIPBYVALUE_1:.*]] = "tf.ClipByValue"
    // CHECK-SAME: (tensor<1x98x98x1xi32>, tensor<i32>, tensor<i32>) -> tensor<1x98x98x1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/tf-tfl-translate-serialize-stablehlo-clamp.mlir

    module {
    func.func @main(%arg0 : tensor<5xf32>, %arg1 : tensor<f32>, %arg2 : tensor<f32>) -> tensor<5xf32> {
      %0 = "tf.ClipByValue"(%arg0, %arg1, %arg2) : (tensor<5xf32>, tensor<f32>, tensor<f32>) -> tensor<5xf32>
      func.return %0 : tensor<5xf32>
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:08:46 UTC 2023
    - 373 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/tests/replace_cast_hacks_with_tf_xla_ops_large_constants.mlir

        %12 = "tf.AddV2"(%11, %arg7) : (tensor<1x2240x1120x512xi32>, tensor<i32>) -> tensor<1x2240x1120x512xi32>
        %13 = "tf.Maximum"(%cst_0, %arg7) : (tensor<i32>, tensor<i32>) -> tensor<i32>
        %14 = "tf.ClipByValue"(%12, %13, %cst) : (tensor<1x2240x1120x512xi32>, tensor<i32>, tensor<i32>) -> tensor<1x2240x1120x512xi32>
        %15 = "tf.Cast"(%14) {Truncate = false} : (tensor<1x2240x1120x512xi32>) -> tensor<1x2240x1120x512xi8>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library_tf_drq.mlir

        %i8_min = "tf.Const"() {value = dense<-128.0> : tensor<f32>} : () -> tensor<f32>
        %i8_max = "tf.Const"() {value = dense<127.0> : tensor<f32>} : () -> tensor<f32>
        %clip = "tf.ClipByValue"(%round, %i8_min, %i8_max) : (tensor<*xf32>, tensor<f32>, tensor<f32>) -> tensor<*xf32>
        %i8 = "tf.Cast"(%clip) : (tensor<*xf32>) -> tensor<*xi8>
        func.return %i8 : tensor<*xi8>
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 15:43:38 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  6. tensorflow/cc/gradients/math_grad.cc

                           std::vector<Output>* grad_outputs) {
      if (op.num_inputs() != 3) {
        return absl::InvalidArgumentError("ClipByValue requires 3 arguments");
      }
      if (grad_inputs.size() != 1) {
        return absl::InvalidArgumentError("ClipByValue grad requires 1 grad input");
      }
    
      Output x = op.input(0);
      Output min = op.input(1);
      Output max = op.input(2);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td

        "$_builder.create<TF::SelectOp>("
        "$0.getLoc(), $3.getType(), $1, $2, $3)">;
    
    def ConstAttrIfThenElse: NativeCodeCall<
        "($0).getValue() ? ($1) : ($2)">;
    
    // Convert clamp(lo, x, hi) to clipbyvalue(x, lo, hi).
    def Clamp: NativeCodeCall<
        "$_builder.create<TF::ClipByValueOp>("
        "  $0.getLoc(),"
        "  $2.getType(), $2, $1, $3)">;
    
    def CopyXlaOutsideCompilationAttr: NativeCodeCallVoid<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/math_grad_test.cc

    namespace tensorflow {
    namespace {
    
    using ops::Abs;
    using ops::Add;
    using ops::AddN;
    using ops::AddV2;
    using ops::Atan2;
    using ops::BatchMatMul;
    using ops::BatchMatMulV3;
    using ops::Cast;
    using ops::ClipByValue;
    using ops::Const;
    using ops::Cumsum;
    using ops::Div;
    using ops::DivNoNan;
    using ops::MatMul;
    using ops::Max;
    using ops::Maximum;
    using ops::Mean;
    using ops::Min;
    using ops::Minimum;
    using ops::Mul;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/testdata/outside_compilation.mlir

          %outputs_75, %control_76 = tf_executor.island wraps "tf.Mul"(%arg0, %outputs_41) {device = "/device:CPU:0"} : (tensor<3x32x32x3xf32>, tensor<f32>) -> tensor<*xf32>
          %outputs_77, %control_78 = tf_executor.island wraps "tf.ClipByValue"(%outputs_75, %outputs_37, %outputs_39) {device = "/device:CPU:0"} : (tensor<*xf32>, tensor<f32>, tensor<f32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 19 20:19:45 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

      // CHECK-DAG: [[VAL3:%.+]] = "tf.Const"() <{value = dense<0.00784313772> : tensor<f32>}>
      // CHECK-DAG: [[VAL4:%.+]] = "tf.Const"() <{value = dense<5.000000e-01> : tensor<f32>}>
      // CHECK-DAG: [[VAL5:%.+]] = "tf.ClipByValue"(%arg0, [[VAL2]], [[VAL1]])
      // CHECK-DAG: [[VAL6:%.+]] = "tf.Sub"([[VAL5]], [[VAL2]])
      // CHECK-DAG: [[VAL7:%.+]] = "tf.Mul"([[VAL6]], [[VAL0]])
      // CHECK-DAG: [[VAL8:%.+]] = "tf.AddV2"([[VAL7]], [[VAL4]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
Back to top