Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 102 for function_ref (0.34 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    //===----------------------------------------------------------------------===//
    // ReshapeOp
    //===----------------------------------------------------------------------===//
    
    namespace {
    using ReshapeErrorHandler =
        llvm::function_ref<LogicalResult(const llvm::Twine &)>;
    
    LogicalResult GetReshapeOutputType(Value tensor, Value shape,
                                       ReshapeErrorHandler error_handler,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      string function_def = MatMulFunction();
      TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(),
                                status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      for (bool clear_cache : {true, false, true}) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/c/c_api_function_test.cc

      }
      return v;
    }
    
    // Specification for an expected edge.
    // src is either:
    // - input name (as it appears in FunctionDef)
    // - name of output tensor (in nested "add:z:0" format)
    // dst is either:
    // - output name (as it appears in FunctionDef)
    // - <name_of_node>:<index_of_this_input_into_node> (this looks the same as
    //      output tensor naming, but it the index is actually an input index)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/tests/function_test.cc

    namespace libtf {
    using tensorflow::AbstractContext;
    using tensorflow::AbstractContextPtr;
    using tensorflow::AbstractFunctionPtr;
    using tensorflow::AbstractTensorHandle;
    using tensorflow::DT_FLOAT;
    using tensorflow::FunctionDef;
    using tensorflow::FunctionDefHelper;
    using tensorflow::PartialTensorShape;
    using tensorflow::Status;
    using tensorflow::StatusOr;
    using tensorflow::TF_StatusPtr;
    using tensorflow::tracing::graph::GraphFunction;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      graph->ToGraphDef(graphdef.get());
      return graphdef;
    }
    
    absl::Status ConvertMlirFunctionToFunctionLibraryDef(
        FuncOp func, const GraphExportConfig& configs, FunctionDef* function_def) {
      Dialect* tf_dialect = func.getContext()->getLoadedDialect("tf");
      FunctionLibraryDefinition flib_def(OpRegistry::Global(),
                                         FunctionDefLibrary());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      graph->ToGraphDef(graphdef.get());
      return graphdef;
    }
    
    absl::Status ConvertMlirFunctionToFunctionLibraryDef(
        FuncOp func, const GraphExportConfig& configs, FunctionDef* function_def) {
      Dialect* tf_dialect = func.getContext()->getLoadedDialect("tf");
      FunctionLibraryDefinition flib_def(OpRegistry::Global(),
                                         FunctionDefLibrary());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

    #include "tensorflow/core/platform/types.h"
    #include "tsl/lib/core/status_test_util.h"
    
    namespace tensorflow {
    
    namespace {
    
    // Produce a valid graph with a resource-type input.
    FunctionDef PassThroughResource() {
      return FunctionDefHelper::Define(
          /*function_name=*/"PassThroughResource",
          /*arg_def=*/{"in: resource"},
          /*ret_def=*/{"out: resource"},
          /*attr_def=*/{},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental.cc

                                   TF_Buffer* buf, TF_Status* status) {
      auto* function_def = tensorflow::unwrap(ctx)->FindFunctionDef(function_name);
      if (function_def == nullptr) {
        status->status = tensorflow::errors::NotFound(
            "Unable to find FunctionDef with name: ", function_name);
        return;
      }
      string str = function_def->SerializeAsString();
      void* data = tensorflow::port::Malloc(str.length());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/graph_function.cc

    namespace tensorflow {
    namespace tracing {
    namespace graph {
    GraphFunction::GraphFunction(FunctionDef fdef)
        : AbstractFunction(kGraph),
          func_record_(new FunctionRecord(std::move(fdef), {}, true)) {}
    GraphFunction::~GraphFunction() {}
    Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) {
      *fdef = &(func_record_->fdef());
      return absl::OkStatus();
    }
    }  // namespace graph
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top