- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for AbstractFunction (0.29 sec)
-
tensorflow/c/eager/abstract_function.h
// function. class AbstractFunction : public core::RefCounted { protected: enum AbstractFunctionKind { kGraph, kMlir }; explicit AbstractFunction(AbstractFunctionKind kind) : kind_(kind) {} public: // Returns which subclass is this instance of. AbstractFunctionKind getKind() const { return kind_; } // Returns the AbstractFunction as a FunctionDef.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/c/eager/graph_function.cc
#include "tensorflow/core/framework/function.h" #include "tensorflow/core/platform/status.h" namespace tensorflow { namespace tracing { namespace graph { GraphFunction::GraphFunction(FunctionDef fdef) : AbstractFunction(kGraph), func_record_(new FunctionRecord(std::move(fdef), {}, true)) {} GraphFunction::~GraphFunction() {} absl::Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) { *fdef = &(func_record_->fdef());
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 1.3K bytes - Viewed (0) -
tensorflow/c/eager/graph_function.h
#include "tensorflow/core/framework/function.h" #include "tensorflow/core/platform/refcount.h" namespace tensorflow { namespace tracing { namespace graph { using tensorflow::AbstractFunction; // Thin wrapper around a FunctionDef. class GraphFunction : public AbstractFunction { public: explicit GraphFunction(FunctionDef fdef); ~GraphFunction() override; // GraphFunction maybe stay alive for the duration of the returned
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 1.8K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_internal.h
// Finalize this context and make a function out of it. The context is in a // invalid state after this call and must be destroyed. virtual absl::Status Finalize(OutputList* outputs, AbstractFunction**) = 0; // For LLVM style RTTI. static bool classof(const AbstractContext* 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/c_api_unified_experimental.cc
// C bindings to the abstract classes defined in the // c_api_unified_experimental_internal.h header. // // ============================================================================= using tensorflow::AbstractFunction; using tensorflow::AbstractTensorHandle; using tensorflow::DataType; using tensorflow::dyn_cast; using tensorflow::OutputList; using tensorflow::Status; using tensorflow::unwrap; using tensorflow::wrap;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/c/eager/abstract_context.h
// Registers a function with this context, after this the function is // available to be called/referenced by its name in this context. virtual absl::Status RegisterFunction(AbstractFunction*) = 0; // Remove a function. 'func' argument is the name of a previously added // FunctionDef. The name is in fdef.signature.name. virtual absl::Status RemoveFunction(const string& func) = 0; private:
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_op_attrs.h
public: // Returns which subclass is this instance of. AbstractOpAttrsKind getKind() const { return kind_; } virtual ~AbstractOpAttrs() = default; // Returns the AbstractFunction as a FunctionDef. virtual void GetNameAttrList( tensorflow::NameAttrList* name_and_attrs) const = 0; virtual bool GetInt(absl::string_view, int64_t* result) const = 0;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
} inputs_.push_back(t->output_); *output = tensorflow::down_cast<TracingTensorHandle*>(outputs[0]); return absl::OkStatus(); } absl::Status Finalize(OutputList* outputs, AbstractFunction** f) override { std::vector<TF_Output> graph_outputs; graph_outputs.reserve(outputs->outputs.size()); for (auto* abstract_output : outputs->outputs) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 15.7K bytes - Viewed (0)