Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for grad_ops (0.14 sec)

  1. tensorflow/cc/BUILD

        ],
    )
    
    tf_cc_test(
        name = "framework_gradients_test",
        srcs = ["framework/gradients_test.cc"],
        deps = [
            ":cc_ops",
            ":client_session",
            ":grad_op_registry",
            ":grad_ops",
            ":gradients",
            ":testutil",
            "//tensorflow/core:all_kernels",
            "//tensorflow/core:framework",
            "//tensorflow/core:framework_internal",
            "//tensorflow/core:protos_all_cc",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/nn_grad.cc

      // The "truth" labels are at index 1.
      auto softmax_grad = op.output(1);
    
      // The loss is the output at index 0, and backprop is the output at index 1.
      auto grad_loss = grad_inputs[0];
      auto grad_grad = grad_inputs[1];
    
      auto grad = BroadcastMul(scope, grad_loss, softmax_grad);
      if (!IsZero(scope, grad_grad)) {
        std::vector<int> axis;
        auto logits_softmax = Softmax(scope, logits);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 23:34:33 UTC 2022
    - 24.5K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/array_grad.cc

      int axis;
      TF_RETURN_IF_ERROR(GetNodeAttr(op.node()->attrs(), "axis", &axis));
    
      grad_outputs->reserve(N);
      auto grad_op = Unstack(scope, grad_inputs[0], N, Unstack::Axis(axis));
      for (const Output& o : grad_op.output) {
        grad_outputs->emplace_back(o);
      }
      return scope.status();
    }
    REGISTER_GRADIENT_OP("Pack", PackGrad);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        // safe.
        if (auto tensor_array_v3_op = dyn_cast<TF::TensorArrayV3Op>(tf_op)) {
          // The "flow" in TensorArrayV3 is always a scalar float tensor.
          // https://www.tensorflow.org/api_docs/python/tf/raw_ops/TensorArrayWriteV3
          Value flow = tensor_array_v3_op.getFlow();
          Type scalar_f32_tensor_type =
              RankedTensorType::get(/*shape=*/{}, rewriter.getF32Type());
          flow.setType(scalar_f32_tensor_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

      // possible terminator.
      return std::next(block->begin()) == block->end() ||
             std::next(block->begin(), 2) == block->end();
    }
    
    // This pattern matches GraphOps with only one FetchOp (empty) and remaps the
    // results of the GraphOp to the operands of the FetchOp.
    struct DropEmptyGraph : public OpRewritePattern<GraphOp> {
      using OpRewritePattern<GraphOp>::OpRewritePattern;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
Back to top