Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 359 for unique_ptr (0.28 sec)

  1. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h

    class TFRDecomposeContext {
     public:
      // The entry function to get a decompose context. All the required passes have
      // been initialized.
      static absl::StatusOr<std::unique_ptr<TFRDecomposeContext>> Get(
          mlir::MLIRContext* mlir_ctx);
    
      // Constructor of the decompose context. To share the decompose library, the
      // whole decompose TFR function library is loaded.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 11:12:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/device_compiler_client.h

     public:
      DeviceCompilerClient() = default;
      virtual ~DeviceCompilerClient() = default;
    
      // Compiles `result` (HLO) to an `ExecutableType` using `ClientType` and
      // returns it.
      virtual StatusOr<std::unique_ptr<ExecutableType>> BuildExecutable(
          const XlaCompiler::Options& options,
          const XlaCompiler::CompilationResult& result) = 0;
    
      // Serializes an available `executable` to string using `ClientType` and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      void UseOriginalFunctionNames(NodeDef& node_def);
    
      Status AddEdge(Operation* inst);
    
      absl::StatusOr<std::unique_ptr<NodeDef>> GetArgumentNode(
          BlockArgument arg, unsigned index, llvm::StringRef name);
      absl::StatusOr<std::unique_ptr<NodeDef>> GetReturnNode(FuncOp function,
                                                             Value operand,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      void UseOriginalFunctionNames(NodeDef& node_def);
    
      Status AddEdge(Operation* inst);
    
      absl::StatusOr<std::unique_ptr<NodeDef>> GetArgumentNode(
          BlockArgument arg, unsigned index, llvm::StringRef name);
      absl::StatusOr<std::unique_ptr<NodeDef>> GetReturnNode(FuncOp function,
                                                             Value operand,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/unified_api_testutil.cc

    #include "tensorflow/core/lib/llvm_rtti/llvm_rtti.h"
    #include "tensorflow/core/platform/errors.h"
    
    namespace tensorflow {
    
    AbstractContext* BuildFunction(const char* fn_name) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TF_ExecutionContext* graph_ctx = TF_CreateFunction(fn_name, status.get());
      return unwrap(graph_ctx);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir.h

        const XlaShapeLayoutHelpers::ShapeDeterminationFns& shape_determination_fns,
        bool use_tuple_args, XlaCompiler::CompilationResult* compilation_result,
        std::vector<std::unique_ptr<mlir::Pass>>& custom_legalization_passes,
        const std::vector<TensorShape>& arg_shapes,
        std::vector<tpu::ShardingAndIndex>* arg_core_mapping,
        std::vector<std::vector<xla::Shape>>* per_core_arg_shapes);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/python/converter_python_api.cc

      char* buf = nullptr;
      Py_ssize_t length;
      std::unique_ptr<PythonErrorReporter> error_reporter(new PythonErrorReporter);
    
      if (tflite::python_utils::ConvertFromPyString(data, &buf, &length) == -1) {
        PyErr_Format(PyExc_ValueError, "Failed to convert input PyObject");
        return nullptr;
      }
      std::unique_ptr<tflite::FlatBufferModel> model =
          tflite::FlatBufferModel::BuildFromBuffer(buf, length,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc

      NoOpPass() = default;
    
      llvm::StringRef getArgument() const final { return "no-op-pass"; }
    
      void runOnOperation() override {
        // Noop pass does nothing on the operation.
      }
    };
    
    std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>> CreateNoOpPass() {
      return std::make_unique<NoOpPass>();
    }
    
    class ParentPass
        : public mlir::PassWrapper<ParentPass,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:17:14 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/pjrt_device_compiler_client.h

        : public DeviceCompilerClient<xla::PjRtLoadedExecutable, xla::PjRtClient> {
     public:
      explicit PjRtDeviceCompilerClient(xla::PjRtClient* client)
          : client_(client) {}
    
      absl::StatusOr<std::unique_ptr<xla::PjRtLoadedExecutable>> BuildExecutable(
          const XlaCompiler::Options& options,
          const XlaCompiler::CompilationResult& result) override;
    
      // Returns a platform-specific serialization of `executable`. The
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/gradients/custom_gradient_test.cc

      Tape tape(/*persistent=*/false);
      tape.Watch(inputs[0]);  // Watch x.
      AbstractTensorHandle* exp_output;
      TF_RETURN_IF_ERROR(ops::Exp(ctx, inputs[0], &exp_output, "Exp"));
      std::unique_ptr<GradientFunction> gradient_function(
          new PassThroughGradientFunction);
      tape.RecordOperation(inputs, {exp_output}, gradient_function.release());
      TF_RETURN_IF_ERROR(tape.ComputeGradient(ctx,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top