Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for grad_fn (0.39 sec)

  1. tensorflow/cc/gradients/grad_testutil.cc

                            const std::vector<Output>& grad_inputs,
                            std::vector<Output>* grad_outputs) {
      ops::GradFunc grad_fn;
      TF_RETURN_IF_ERROR(ops::GradOpRegistry::Global()->Lookup(
          op.node()->type_string(), &grad_fn));
      TF_RETURN_IF_ERROR(grad_fn(scope, op, grad_inputs, grad_outputs));
      TF_RETURN_IF_ERROR(scope.status());
      return absl::OkStatus();
    }
    
    }  // end namespace test
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 14:07:19 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/gradients.cc

      ops::GradFunc grad_fn;
      Status s = registry_->Lookup(opname, &grad_fn);
      return s.ok() && (grad_fn == nullptr);
    }
    
    Status SymbolicGradientBuilder::CallGradFunction(
        const Operation& op, const std::vector<Output>& grad_inputs,
        std::vector<Output>* grad_outputs) {
      ops::GradFunc grad_fn;
      TF_RETURN_IF_ERROR(registry_->Lookup(op.node()->type_string(), &grad_fn));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 22K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/nn_grad.cc

        reserve_spaces[1] = op.input(4);  // pop_var
        if (data_format == "NCHW") {
          x = Transpose(scope, x, {0, 2, 3, 1});
          grad_y = Transpose(scope, grad_y, {0, 2, 3, 1});
        } else if (data_format == "NCDHW") {
          x = Transpose(scope, x, {0, 2, 3, 4, 1});
          grad_y = Transpose(scope, grad_y, {0, 2, 3, 4, 1});
        }
    
        StringPiece target_data_format;
        if (data_format == "NCHW" || data_format == "NHWC") {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 23:34:33 UTC 2022
    - 24.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td

        $adj_x, $adj_y, $grad_x, $grad_y),
      (TF_BatchMatMulV2Op:$dest $x, $y, $adj_x, $adj_y, $grad_x, $grad_y),
      [], [(CopyAttrs $src, $dest)]>;
    
    def BatchMatMulToMatMul : Pat<
      (TF_BatchMatMulOp:$src $x, $y, $adj_x, $adj_y, $grad_x, $grad_y),
      (TF_MatMulOp:$dest $x, $y, $adj_x, $adj_y, $grad_x, $grad_y),
      [(IsRank2Tensor $x), (IsRank2Tensor $y)],
      [(CopyAttrs $src, $dest)]>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 18:42:28 UTC 2023
    - 17K bytes
    - Viewed (0)
  10. 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)
Back to top