Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for KernelSpecs (0.15 sec)

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

        if (all_signatures_.insert({signature, spec}).second) return success();
        return failure();
      }
    
      KernelSpecs& WithSignature(const KernelSpecs::Signature& signature,
                                 const ScaleFn& fn) {
        (void)Add(signature, {ScaleConstraintType::CustomScale, fn});
        return *this;
      }
    
      KernelSpecs& WithImpl(const ScaleDecomposeFn& dfn) {
        decompose_fn_ = dfn;
        return *this;
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/device_target.cc

    LogicalResult DeviceTarget::RegisterKernel(
        llvm::StringRef kernel, const KernelSpecs::Signature& signature,
        const ScaleFn& fn, const ScaleDecomposeFn& dfn) {
      return specs_[kernel].Add(signature, {ScaleConstraintType::CustomScale, fn});
    }
    
    namespace ph = std::placeholders;
    
    LogicalResult DeviceTarget::RegisterKernel(
        llvm::StringRef kernel, const KernelSpecs::Signature& signature,
        const ScaleConstraintType constraint) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

      all_ops.reserve(128);
      func_.walk([&](quantfork::QuantizeRegionOp op) { all_ops.push_back(op); });
      return all_ops;
    }
    
    KernelSpecs::Signature QuantizeContext::GetSignature(
        quantfork::QuantizeRegionOp op) {
      KernelSpecs::Signature signature;
      signature.reserve(op.getInputSpecs().size() + op.getOutputSpecs().size());
      for (int i = 0; i < op.getNumOperands(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

      QuantParams GetOperandParams(Operation *op, int index) {
        return states_manager_.GetOperandParams(op, index);
      }
    
      // Return the signature of the op.
      KernelSpecs::Signature GetSignature(quantfork::QuantizeRegionOp op);
    
      // A heuristic to get quantization parameters satisfies the same scale
      // constraints:
      // - If there are immutable states,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top