Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 54 for function_ref (0.18 sec)

  1. tensorflow/c/experimental/saved_model/core/revived_types/tf_signature_def_function.cc

    Status TFSignatureDefFunction::Create(
        const FunctionDef* function_def,
        std::vector<ImmediateExecutionTensorHandle*> captures,
        SignatureDefFunctionMetadata metadata, ImmediateExecutionContext* ctx,
        std::unique_ptr<TFSignatureDefFunction>* out) {
      std::unique_ptr<FlatTensorFunction> func;
      TF_RETURN_IF_ERROR(FlatTensorFunction::Create(
          function_def, std::move(captures), ctx, &func));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 07:01:57 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.h

    Status ConvertMlirFunctionToFunctionLibraryDef(mlir::func::FuncOp func,
                                                   const GraphExportConfig& configs,
                                                   FunctionDef* function_def);
    
    }  // namespace v2
    }  // namespace tf2xla
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.h

    Status ConvertMlirFunctionToFunctionLibraryDef(mlir::func::FuncOp func,
                                                   const GraphExportConfig& configs,
                                                   FunctionDef* function_def);
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_remote_test_util.cc

      }
    
      TFE_Op* matmul = nullptr;
      if (func) {
        const string matmul_device = remote_func_outputs ? task2_name : "";
        string function_def = MatMulFunction(matmul_device);
        TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(),
                                  status);
        CHECK_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
        matmul = TFE_NewOp(ctx, "MatMulFunction", status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/runtime/runtime.cc

      }
      TaggedValue module = TaggedValue::Dict();
    
      // Initialize concrete function traces.
      const RepeatedPtrField<FunctionDef> function_defs =
          tf_package->GetFunctionDefs();
      absl::flat_hash_map<std::string, AbstractFunctionPtr> traces;
      for (auto& fdef : function_defs) {
        AbstractFunctionPtr trace(new GraphFunction(fdef), /*add_ref=*/false);
        traces[fdef.signature().name()] = trace;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_kernel_creator_test.cc

      return std::make_shared<NodeProperties>(nullptr, std::move(node_def), dummy,
                                              dummy);
    }
    
    // Create a FunctionDef that takes one resource and one regular param
    FunctionDef XTimesY() {
      return FunctionDefHelper::Define(
          // Name
          "XTimesY",
          // Args
          {"x: float", "y: resource"},
          // Return values
          {"z: float"},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h

      // Decomposes the op in the NodeDef to a set of primitive ops according to the
      // decompose library in the context. Wrap the decomposed result in a
      // FunctionDef.
      absl::StatusOr<FunctionDef> ExpandNode(const NodeDef& node_def,
                                             StringPiece func_name);
    
      // Runs the decompose passes on the user_module.
      Status DecomposeGraph(mlir::ModuleOp user_module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 11:12:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/c/eager/graph_function.h

    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
      // FunctionDef.
      Status GetFunctionDef(const FunctionDef** fdef) override;
    
      // Returns a shared reference to the wrapped function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. tensorflow/c/eager/abstract_function.h

      // Returns which subclass is this instance of.
      AbstractFunctionKind getKind() const { return kind_; }
    
      // Returns the AbstractFunction as a FunctionDef.
      virtual Status GetFunctionDef(const FunctionDef**) = 0;
    
      // Returns a shared reference to the wrapped function.
      virtual absl::StatusOr<core::RefCountPtr<FunctionRecord>>
      GetFunctionRecord() = 0;
    
     private:
      const AbstractFunctionKind kind_;
    };
    
    using AbstractFunctionPtr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.h

    // Conceptually, there are many differences between a tf.function and
    // a FunctionDef is executed by the C API.
    // 1. A tf.function is polymorphic, meaning it can correspond to multiple
    // ConcreteFunctions (of differing shapes, python arguments, etc). A
    // FunctionDef corresponds to a single ConcreteFunction.
    // 2. A tf.function can take arbitrary python inputs, whereas the FunctionDef
    // only accepts tensors.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 21:44:45 UTC 2022
    - 3.9K bytes
    - Viewed (0)
Back to top