- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for AbstractTensorHandle (0.14 sec)
-
tensorflow/c/eager/gradient_checker.cc
absl::Span<AbstractTensorHandle* const> inputs, int input_index, bool use_function, AbstractTensorHandle** numerical_grad) { vector<AbstractTensorHandle*> theta_inputs(inputs.size()); for (int i{}; i < inputs.size(); ++i) { theta_inputs[i] = inputs[i]; } AbstractTensorHandle* theta =
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/c/eager/gradients.h
class TapeTensor { public: explicit TapeTensor(AbstractTensorHandle* handle); TapeTensor(const TapeTensor& other); ~TapeTensor(); int64_t GetID() const; tensorflow::DataType GetDType() const; AbstractTensorHandle* ZerosLike() const; AbstractTensorHandle* GetHandle() const; private: AbstractTensorHandle* handle_; }; // A tracing/immediate-execution agnostic tape.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 6.9K bytes - Viewed (0) -
tensorflow/c/eager/gradients_test.cc
ASSERT_EQ(read_message, message); } absl::Status RecordOperationWithNullGradientFunctionModel( AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs, absl::Span<AbstractTensorHandle*> outputs) { Tape tape(/*persistent=*/false); tape.Watch(inputs[0]); AbstractTensorHandle* neg_output; TF_RETURN_IF_ERROR(ops::Neg(ctx, inputs[0], &neg_output, "Neg")); tape.RecordOperation(inputs, {neg_output}, nullptr, "Neg");
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/eager/gradient_checker_test.cc
absl::Span<AbstractTensorHandle* const> inputs, absl::Span<AbstractTensorHandle*> outputs) { return ops::MatMul(ctx, inputs[0], inputs[1], &outputs[0], /*transpose_a=*/false, /*transpose_b=*/false, "MatMul"); } absl::Status MulModel(AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_internal.h
// GraphContext and vice-versa). class TracingTensorHandle : public AbstractTensorHandle { protected: explicit TracingTensorHandle(AbstractTensorHandleKind kind) : AbstractTensorHandle(kind) {} public: // For LLVM style RTTI. static bool classof(const AbstractTensorHandle* ptr) { return ptr->getKind() == kGraph || ptr->getKind() == kMlir; } };
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/c/eager/abstract_tensor_handle.h
// Abstract interface to a Tensor handle in either tracing or immediate // execution mode. class AbstractTensorHandle : public core::RefCounted { protected: enum AbstractTensorHandleKind { kGraph, kMlir, kEager, kTfrt, kCustomDevice }; explicit AbstractTensorHandle(AbstractTensorHandleKind kind) : kind_(kind) {} ~AbstractTensorHandle() override {} public: // Returns tensor dtype.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/c/eager/abstract_tensor_handle.cc
limitations under the License. ==============================================================================*/ #include "tensorflow/c/eager/abstract_tensor_handle.h" namespace tensorflow { std::string AbstractTensorHandle::DebugString() const { PartialTensorShape shape; absl::Status s = Shape(&shape); std::string shape_string; if (!s.ok()) { shape_string = "<error computing shape>"; } else {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 1.4K bytes - Viewed (0) -
tensorflow/c/eager/gradients.cc
// Converts a Gradient to a TapeTensor. TapeTensor TapeTensorFromGradient(AbstractTensorHandle* g) const override; void MarkAsResult(AbstractTensorHandle* gradient) const override; void DeleteGradient(AbstractTensorHandle* gradient) const override; private: // The context where the aggregation op `Add` is to be created. AbstractContext* ctx_; };
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/c/eager/gradients_internal.h
// Records the inputs in the `ForwardOperation`. absl::Status AddInput(AbstractOperation*, AbstractTensorHandle*, ForwardOperation*); absl::Status AddInputList(AbstractOperation*, absl::Span<AbstractTensorHandle* const> inputs, ForwardOperation*); // Sets the attrs in the `ForwardOperation`.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 4.7K bytes - Viewed (0) -
tensorflow/c/eager/abstract_operation.h
virtual absl::Status SetDeviceName(const char* name) = 0; virtual absl::Status AddInput(AbstractTensorHandle* input) = 0; virtual absl::Status AddInputList( absl::Span<AbstractTensorHandle* const> inputs) = 0; virtual absl::Status Execute(absl::Span<AbstractTensorHandle*> retvals, int* num_retvals) = 0;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7.3K bytes - Viewed (0)