Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for KernelSpecs (0.13 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)
Back to top