Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ScaleFn (0.1 sec)

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

    class QuantizeContext;
    
    using AdjacentOperations = llvm::SmallVectorImpl<Operation*>;
    using QuantizedMultipliers = llvm::SmallVector<QuantizedMultiplier, 4>;
    using QuantizedRanges = llvm::SmallVector<QuantizedRange, 4>;
    using ScaleFn = std::function<LogicalResult(QuantizeContext*, Operation*,
                                                AdjacentOperations*, bool*)>;
    
    using ScaleDecomposeFn =
        std::function<LogicalResult(Operation*, QuantizedMultipliers*,
    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

      } else {  // float
        signature->push_back(AnyQuantizedType());
      }
    }
    
    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(
    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. src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go

    			if sampleType[i] == nil {
    				ratios[i] = 1
    				continue
    			}
    			ratios[i], _ = Scale(1, st.Unit, sampleType[i].Unit)
    			p.SampleType[i].Unit = sampleType[i].Unit
    		}
    		if err := p.ScaleN(ratios); err != nil {
    			return fmt.Errorf("scale: %v", err)
    		}
    	}
    	return nil
    }
    
    // CommonValueType returns the finest type from a set of compatible
    // types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top