Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for grad_b (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/unroll-batch-matmul.mlir

      // CHECK: %[[MATMUL_4:.*]] = "tf.MatMul"(%[[LHS_4]], %[[RHS_4]]) <{grad_a = false, grad_b = false, transpose_a = false, transpose_b = false}> : (tensor<4x5xf32>, tensor<5x6xf32>) -> tensor<4x6xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 18:42:28 UTC 2023
    - 63.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.td

    def ConvertTFMatMulToXLADotV2Op : Pat<
      (TF_MatMulOp:$matmul
        (TF_SubOp (TF_CastOp $input, $truncate), $input_zp),
        (TF_CastOp (TF_IdentityOp $weight), $truncate1),
        $transpose_a, $transpose_b, $grad_a, $grad_b),
      (CreateXlaDotV2OpFromTfMatMulOp
        $input, $weight, $input_zp,
        /*weight_zp=*/(CreateScalarIntegerConst<"int32_t", "0">), $matmul,
        $transpose_a, $transpose_b),
      [(IsInt8ElementType $input),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.td

          (NamedAttr<"dilations"> $dilations))),
      [(IsNotInLiftedFunc $res)], [], (addBenefit 1)>;
    
    def LiftMatMul : Pat<
      (TF_MatMulOp:$res $a, $b, $transpose_a, $transpose_b, $grad_a, $grad_b),
      (LiftAsTFPartitionedCall<"composite_matmul_fn">
        (ArgumentList $a, $b),
        (ResultList $res),
        (NamedAttributeList
          (NamedAttr<"transpose_a"> $transpose_a),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/cpp/golden/testing_ops.cc.golden

      TF_RETURN_IF_ERROR(op_ptr->SetAttrBool("transpose_a", transpose_a));
      TF_RETURN_IF_ERROR(op_ptr->SetAttrBool("transpose_b", transpose_b));
      TF_RETURN_IF_ERROR(op_ptr->SetAttrBool("grad_a", grad_a));
      TF_RETURN_IF_ERROR(op_ptr->SetAttrBool("grad_b", grad_b));
      int num_retvals = 1;
      return op_ptr->Execute(absl::MakeSpan(product, 1), &num_retvals);
    }
    
    // Op: IdentityN()
    // Summary:
    //
    // Description:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 19:04:03 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

          Pat<(TF_MatMulOp $a, $b, ConstBoolAttrFalse:$at, ConstBoolAttrFalse, $grad_a, $grad_b),
              (TF_MatMulOp $a, (TF_TransposeOp $b, (TF_SubOp (TF_RangeOp
                 /*start=*/(TF_RankOp $b),
                 /*limit=*/(TF_ConstOp TFi32<0>),
                 /*delta=*/(TF_ConstOp TFi32<-1>)), (TF_ConstOp TFi32<1>))),
               $at, ConstBoolAttrTrue, $grad_a, $grad_b)>;
    
    // Matmul with transpose on a to matmul with explicit transpose op and a not
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

          });
          return false;
        }
        // FusedMatMul kernel does not support grad_a/grad_b attrs
        if ((matmul->hasAttr("grad_a") &&
             mlir::cast<BoolAttr>(matmul->getAttr("grad_a")).getValue()) ||
            (matmul->hasAttr("grad_b") &&
             mlir::cast<BoolAttr>(matmul->getAttr("grad_b")).getValue())) {
          (void)rewriter.notifyMatchFailure(matmul, [&](Diagnostic &diag) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/cpp/golden/testing_ops.h.golden

    //
    Status MatMul(AbstractContext* ctx, AbstractTensorHandle* const a, AbstractTensorHandle* const b, AbstractTensorHandle** product, bool transpose_a = false, bool transpose_b = false, bool grad_a = false, bool grad_b = false, const char* name = nullptr, const char* raw_device_name = nullptr);
    
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 19:04:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py

      updates_grad_reshaped = tf.reduce_sum(
          grad, axis=reduction_axes, keepdims=True)
      bias_grad = tf.reshape(updates_grad_reshaped, input_value_shape)
    
      a = math_ops.conj(op.inputs[0])
      b = math_ops.conj(op.inputs[1])
      grad_a = gen_math_ops.mat_mul(grad, b)
      grad_b = gen_math_ops.mat_mul(grad, a, transpose_a=True)
      return [grad_a, grad_b, bias_grad]
    
    
    @Composite(
        'NewMaxPool',
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 20:23:51 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/insert_calibration_statistics_saver.mlir

      }
    
      func.func private @composite_matmul_with_bias_fn_1(%arg0: tensor<1x4xf32>, %arg1: tensor<4x3xf32>, %arg2: tensor<3xf32>) -> tensor<1x3xf32> attributes {tf_quant.composite_function} {
        %0 = "tf.MatMul"(%arg0, %arg1) <{grad_a = false, grad_b = false, transpose_a = false, transpose_b = false}> {attr_map = "0:transpose_a,1:transpose_b", device = ""} : (tensor<1x4xf32>, tensor<4x3xf32>) -> tensor<1x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.td

          (NamedAttr<"dilations"> $dilations))),
      [(IsNotInLiftedFunc $res), (IsConstTensor $filter)], [], (addBenefit 1)>;
    
    def LiftMatMul : Pat<
      (TF_MatMulOp:$res $a, $b, $transpose_a, $transpose_b, $grad_a, $grad_b),
      (LiftAsTFPartitionedCall<"composite_matmul_fn">
        (ArgumentList $a, $b),
        (ResultList $res),
        (NamedAttributeList
          (NamedAttr<"transpose_a"> $transpose_a),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top