Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ForwardOperation (0.19 sec)

  1. tensorflow/c/eager/gradients_internal.h

    // the state of the ForwardOperation and call the tape as appropriate.
    // These APIs are mainly to facilitate testing and are subject to change.
    
    // Records the op name in the `ForwardOperation`.
    Status Reset(AbstractOperation*, const char* op, const char* raw_device_name,
                 ForwardOperation*);
    
    // Records the inputs in the `ForwardOperation`.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:35 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/math_grad.h

    namespace gradients {
    
    GradientFunction* AddRegisterer(const ForwardOperation& op);
    GradientFunction* ExpRegisterer(const ForwardOperation& op);
    GradientFunction* MatMulRegisterer(const ForwardOperation& op);
    GradientFunction* SqrtRegisterer(const ForwardOperation& op);
    GradientFunction* NegRegisterer(const ForwardOperation& op);
    GradientFunction* SubRegisterer(const ForwardOperation& op);
    GradientFunction* MulRegisterer(const ForwardOperation& op);
    C
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Dec 03 22:28:48 GMT 2020
    - 1.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/nn_grad.h

    #include "tensorflow/c/eager/gradients.h"
    
    namespace tensorflow {
    namespace gradients {
    GradientFunction* ReluRegisterer(const ForwardOperation& op);
    GradientFunction* SparseSoftmaxCrossEntropyWithLogitsRegisterer(
        const ForwardOperation& op);
    GradientFunction* BiasAddRegisterer(const ForwardOperation& op);
    }  // namespace gradients
    }  // namespace tensorflow
    
    C
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Dec 03 22:28:48 GMT 2020
    - 1.2K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/gradients/nn_grad.cc

    }  // namespace
    
    GradientFunction* ReluRegisterer(const ForwardOperation& op) {
      return new ReluGradientFunction(op.outputs);
    }
    
    GradientFunction* SparseSoftmaxCrossEntropyWithLogitsRegisterer(
        const ForwardOperation& op) {
      return new SparseSoftmaxCrossEntropyWithLogitsGradientFunction(op.outputs);
    }
    
    GradientFunction* BiasAddRegisterer(const ForwardOperation& op) {
      return new BiasAddGradientFunction(op.attrs);
    }
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradients.h

    // gradient registerer to instantiate a GradientFunction.
    struct ForwardOperation {
     public:
      string op_name;
      std::vector<AbstractTensorHandle*> inputs;
      std::vector<AbstractTensorHandle*> outputs;
      std::vector<int64_t> skip_input_indices;
      AttrBuilder attrs;
    };
    
    using GradientFunctionFactory =
        std::function<GradientFunction*(const ForwardOperation& op)>;
    
    // Map from op name to a `GradientFunctionFactory`.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 10:27:05 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/gradients/not_differentiable.cc

        grad_inputs[i] = nullptr;
      }
      return OkStatus();
    }
    
    Status RegisterNotDifferentiable(GradientRegistry* registry, const string& op) {
      return registry->Register(op, [](const ForwardOperation& op) {
        return new NotDifferentiableGradientFunction;
      });
    }
    }  // namespace gradients
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Jun 15 01:15:58 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/gradients/array_grad.h

    #define TENSORFLOW_C_EXPERIMENTAL_GRADIENTS_ARRAY_GRAD_H_
    
    #include "tensorflow/c/eager/gradients.h"
    
    namespace tensorflow {
    namespace gradients {
    GradientFunction* IdentityNRegisterer(const ForwardOperation& op);
    }  // namespace gradients
    }  // namespace tensorflow
    
    C
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Thu Dec 03 22:28:48 GMT 2020
    - 1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/array_grad.cc

          }
          grad_inputs[i] = grad_input;
        }
        return absl::OkStatus();
      }
      ~IdentityNGradientFunction() override {}
    };
    }  // namespace
    
    GradientFunction* IdentityNRegisterer(const ForwardOperation& op) {
      return new IdentityNGradientFunction;
    }
    
    }  // namespace gradients
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/gradients/tape/tape_operation.h

      // For LLVM style RTTI.
      static bool classof(const AbstractOperation* ptr) {
        return ptr->getKind() == kTape;
      }
      ~TapeOperation() override;
    
     private:
      AbstractOperation* parent_op_;
      ForwardOperation forward_op_;
      Tape* tape_;
      const GradientRegistry& registry_;
    };
    
    }  // namespace gradients
    }  // namespace tensorflow
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 23 23:12:39 GMT 2020
    - 3.7K bytes
    - Viewed (1)
  10. tensorflow/c/eager/gradients_test.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
        t.reset(x_raw);
      }
    
      AbstractOperationPtr check_numerics_op(ctx->CreateOperation());
      ForwardOperation forward_op;
      Status s = Reset(check_numerics_op.get(), "CheckNumerics",
                       /*raw_device_name=*/nullptr, &forward_op);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
Back to top