Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 641 for unique_ptr (0.22 sec)

  1. tensorflow/compiler/mlir/lite/quantization/quantization_passes.h

    std::unique_ptr<OperationPass<func::FuncOp>> CreateImportQuantStatsPass(
        OperationToName op_to_name, const std::string& stats_str);
    
    // Creates an instance pass to import quantization stats to the operations in
    // the function. A custom method to get the name from the op is used because
    // different dialect ops might have different ways to assign the name.
    std::unique_ptr<OperationPass<func::FuncOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:43:51 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/drop_while_shape_invariant.cc

        cluster.walk([](Operation* op) { DropWhileShapeInvariantAttr(op); });
      });
    }
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateDropWhileShapeInvariantPass() {
      return std::make_unique<DropWhileShapeInvariantPass>();
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateDropWhileShapeInvariantInDeviceClusterPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/pjrt_tensor_buffer.h

    // also owns a PjRtBuffer for XLA kernel's usage.
    class PjRtTensorBuffer : public TensorBuffer {
     public:
      PjRtTensorBuffer(const void* ptr, size_t expected_size,
                       std::unique_ptr<xla::PjRtBuffer> pjrt_buffer)
          : TensorBuffer(const_cast<void*>(ptr)),
            expected_size_(expected_size),
            pjrt_buffer_(std::move(pjrt_buffer)) {}
    
      size_t size() const override { return expected_size_; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

      return TensorHandlePtr(result_handle);
    }
    
    template <typename value_type>
    void ExpectScalarEq(TFE_TensorHandle* handle, value_type expected_value) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> actual_value(
          TFE_TensorHandleResolve(handle, status.get()), TF_DeleteTensor);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 09 01:12:35 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/pjrt_device_context.cc

    #include "tensorflow/core/tfrt/common/async_value_tensor.h"
    #include "tensorflow/core/tfrt/common/create_pjrt_client_util.h"
    #include "tsl/framework/device_id_utils.h"
    
    namespace tensorflow {
    namespace {
    
    absl::StatusOr<std::unique_ptr<xla::PjRtBuffer>> HostTensorToPjRtBuffer(
        const tensorflow::Tensor* cpu_tensor, tensorflow::Device* device,
        xla::PjRtClient* pjrt_client,
        const XlaShapeLayoutHelpers::ShapeDeterminationFns
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:49:31 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/ir/Passes.h

    class FuncOp;
    }  // namespace func
    
    namespace quantfork {
    
    /// Creates a pass that converts quantization simulation operations (i.e.
    /// FakeQuant and those like it) to casts into/out of supported QuantizedTypes.
    std::unique_ptr<OperationPass<func::FuncOp>> createConvertSimulatedQuantPass();
    
    /// Creates a pass that converts constants followed by a qbarrier to a
    /// constant whose value is quantized. This is typically one of the last
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 29 18:55:28 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_device_compiler_client.h

    class XlaDeviceCompilerClient
        : public DeviceCompilerClient<xla::LocalExecutable, xla::LocalClient> {
     public:
      explicit XlaDeviceCompilerClient(xla::LocalClient* client)
          : client_(client) {}
    
      absl::StatusOr<std::unique_ptr<xla::LocalExecutable>> BuildExecutable(
          const XlaCompiler::Options& options,
          const XlaCompiler::CompilationResult& result) override;
    
      // Returns a serialized AOT result obtained by exporting the available
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.h

    // Returns the spec for the given operation that can be used for both of
    // dynamic and static range quantization.
    std::unique_ptr<OpQuantSpec> GetTFOpQuantSpec(Operation* op);
    
    // Returns quantization scale specs (fixed output, same scale) for a TF op.
    std::unique_ptr<OpQuantScaleSpec> GetTfQuantScaleSpec(Operation* op);
    
    }  // namespace quant
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/core/saved_model_utils.cc

    Status LoadTFConcreteFunction(
        const SavedConcreteFunction& saved_concrete_function,
        const FunctionDef* function_def,
        const std::unordered_map<int, std::unique_ptr<TensorHandleConvertible>>&
            captured_objects,
        ImmediateExecutionContext* ctx, std::unique_ptr<TFConcreteFunction>* out) {
      TF_RETURN_IF_ERROR(ValidateSavedFunctionCompatibleWithFunctionDef(
          saved_concrete_function, function_def));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 19:17:46 UTC 2023
    - 24K bytes
    - Viewed (0)
  10. tensorflow/c/eager/unified_api_testutil.h

    Status TestTensorHandleWithDims(AbstractContext* ctx, const T* data,
                                    const int64_t* dims, int num_dims,
                                    AbstractTensorHandle** tensor) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_Context* eager_ctx =
          TF_ExecutionContextGetTFEContext(wrap(ctx), status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top