- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 114 for function_ref (0.51 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc
graph.ToGraphDef(&graph_def); if (!function_library) return failure(); for (const std::string& func_name : function_library->ReachableDefinitions(graph_def).ListFunctionNames()) { const FunctionDef* func_def = function_library->Find(func_name); std::unique_ptr<FunctionBody> func_body; absl::Status status = FunctionDefToBodyHelper( *func_def, AttrSlice(&func_def->attr()), function_library, &func_body);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 12:22:33 UTC 2024 - 8.9K 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: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 26 22:20:27 UTC 2021 - 2K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_compile_util_test.cc
auto d = ops::_Retval(scope.WithOpName("D"), c, 0); TF_RETURN_IF_ERROR(scope.ToGraph(graph.get())); return graph; } StatusOr<FunctionDef> SampleFuntionAddXY(const std::string& name) { TF_ASSIGN_OR_RETURN(auto graph, SampleGraphAddXY()); FunctionDef fdef; TF_RETURN_IF_ERROR(GraphToFunctionDef(*graph, name, &fdef)); return fdef; } std::vector<XlaCompiler::Argument> SampleArgsForAddXY() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 21 23:21:57 UTC 2023 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir.cc
TF_Status* status) { FunctionDef functiondef; auto s = tensorflow::LoadProtoFromBuffer(functiondef_proto, &functiondef); if (!s.ok()) { tsl::Set_TF_Status_from_Status(status, s); return "// error"; } const std::string& function_name = functiondef.signature().name(); EagerContext* cpp_context = ContextFromInterface(unwrap(tfe_context));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:16:49 UTC 2024 - 19.3K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_context.h
// Block until all pending nodes are finished. virtual Status AsyncWait() = 0; // Add a function (serialized FunctionDef protocol buffer) so that it can // be executed as an op. Return error if the function with the same name // already exists. virtual Status AddFunctionDef(const FunctionDef& fdef) = 0; // Notifies about the function removal. virtual Status AddRemoveFunctionNotifier(const string& func,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 06 08:34:00 UTC 2023 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/jit/test_util.h
SessionOptions session_options; }; // Helps set up devices for unit tests. class DeviceSetup { public: void AddDevicesAndSetUp( const std::vector<std::string>& device_names, const std::optional<FunctionDef>& fdef = std::nullopt); Device* GetDevice(const string& device_name); FunctionLibraryRuntime* flr() { return flr_; } private: FunctionLibraryRuntime* flr_; std::unique_ptr<DeviceMgr> device_mgr_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 16 18:03:15 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/function.cc
// TODO(srbs): Provide a function execution API on ctx so that we do not // expose the internals of how functions are to be executed here. std::string fname; { const tensorflow::FunctionDef* fdef = nullptr; TF_RETURN_IF_ERROR(trace->GetFunctionDef(&fdef)); fname = fdef->signature().name(); } // TODO(srbs): Update RegisterFunction to accept AbstractFunctionPtr.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 04 19:49:06 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-input-shapes.pbtxt
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -o - | FileCheck %s # Verify that the _input_shapes attribute of the FunctionDef is respected. # This also checks that the output type is correctly inferred based on # that. #CHECK: func private @identity_function0(%arg0: tensor<i32>) -> tensor<i32> node { name: "Placeholder" op: "Placeholder" attr { key: "dtype" value { type: DT_BOOL
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 11 19:14:04 UTC 2020 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/jit/test_util.cc
absl::StrJoin(missing, ",")); } return absl::OkStatus(); } void DeviceSetup::AddDevicesAndSetUp( const std::vector<std::string>& device_names, const std::optional<FunctionDef>& fdef) { SessionOptions options; auto* device_count = options.config.mutable_device_count(); for (const auto& device_name : device_names) { device_count->insert({device_name, 1}); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 11:36:41 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/concrete_function.h
// // SavedModelAPI's ConcreteFunctions' lifetimes are bound to the SavedModel they // are loaded from, since they retain pointers to the TensorHandles owned by the // SavedModel, and the FunctionDef of the SavedModel. // // Note(bmzhao): This class is only TEMPORARILY virtual, as a way to unblock // TFRT integration with TF Serving. Do not add more virtual implementations of
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 29 15:50:58 UTC 2021 - 2.4K bytes - Viewed (0)