Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for L2Loss (0.06 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

    //===----------------------------------------------------------------------===//
    // L2Loss op patterns.
    //===----------------------------------------------------------------------===//
    
    def GetAllAxes : NativeCodeCall<
      "GetI64ElementsAttrForSeq("
      "0, $0.getType().cast<RankedTensorType>().getRank(), &$_builder)">;
    
    // L2Loss is lowered using the formula,
    // L2Loss(input) = Sum(input * input) / 2
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

      %0 = "tf.L2Loss"(%arg0) : (tensor<?x?xf32>) -> tensor<f32>
    
      // CHECK: return %[[LOSS]] : tensor<f32>
      func.return %0 : tensor<f32>
    }
    
    // CHECK-LABEL: func @l2_loss_unranked
    func.func @l2_loss_unranked(%arg0: tensor<*xf32>) -> tensor<f32> {
      // CHECK: tf.L2Loss
      %0 = "tf.L2Loss"(%arg0) : (tensor<*xf32>) -> tensor<f32>
      func.return %0 : tensor<f32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/mark_for_compilation_pass.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

      );
    
      TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
    }
    
    
    def TF_L2LossOp : TF_Op<"L2Loss", [Pure]> {
      let summary = "L2 Loss.";
    
      let description = [{
    Computes half the L2 norm of a tensor without the `sqrt`:
    
        output = sum(t ** 2) / 2
      }];
    
      let arguments = (ins
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
Back to top