Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 396 for costs (0.05 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/compute_cost.cc

    namespace mlir {
    namespace TFL {
    namespace tac {
    namespace {
    
    // We will caculate the total compute cost for each Func Op.
    //
    // The compute cost is simply an add-up of the costs of all the operations
    // within the FuncOp. (Excluding const ops since they're just "data".)
    // We will ignore quant/dequant/requant costs within the Func Op as well,
    // intuition:
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 15:10:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  2. .github/ISSUE_TEMPLATE/11-language-change.yml

        validations:
          required: false
    
      - type: input
        id: perf-costs
        attributes:
          label: Performance Costs
          description: "What is the compile time cost? What is the run time cost? "
        validations:
          required: false
    
      - type: textarea
        id: prototype
        attributes:
          label: "Prototype"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 20:49:24 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. ci/official/utilities/setup_docker.sh

    if [[ "$TFCI_DOCKER_PULL_ENABLE" == 1 ]]; then
      # Simple retry logic for docker-pull errors. Sleeps if a pull fails.
      # Pulling an already-pulled container image will finish instantly, so
      # repeating the command costs nothing.
      docker pull "$TFCI_DOCKER_IMAGE" || sleep 15
      docker pull "$TFCI_DOCKER_IMAGE" || sleep 30
      docker pull "$TFCI_DOCKER_IMAGE" || sleep 60
      docker pull "$TFCI_DOCKER_IMAGE"
    fi 
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 18:22:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/tests/analysis/update_op_cost_in_tfrt_mlir_test.cc

      ASSERT_TRUE(module);
    
      // Create a cost recorder with fake cost records.
      auto expected_op_cost_map = GetOpCostMap(module.get());
      EXPECT_EQ(expected_op_cost_map.size(), 1);
      unsigned int seed = 23579;
      for (auto& [op_key, cost] : expected_op_cost_map) {
        cost = rand_r(&seed) % 1000;
      }
      tensorflow::tfrt_stub::CostRecorder cost_recorder;
      for (const auto& [op_key, cost] : expected_op_cost_map) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 21 22:52:12 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.h

    namespace tensorflow {
    namespace tfrt_compiler {
    
    // Analyze costs for tensorflow operations.
    //
    // The current heuristic used is quite simple, which is to calculate the total
    // size of input tensors. The exception is that ops whose cost is irrelevant to
    // input sizes, such as tf.Shape and tf.Reshape, are whitelisted to have cheap
    // cost. This cost analysis is expected to be used conservatively (eg. use a low
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. src/sync/oncefunc.go

    // If f panics, the returned function will panic with the same value on every call.
    func OnceFunc(f func()) func() {
    	var (
    		once  Once
    		valid bool
    		p     any
    	)
    	// Construct the inner closure just once to reduce costs on the fast path.
    	g := func() {
    		defer func() {
    			p = recover()
    			if !valid {
    				// Re-panic immediately so on the first call the user gets a
    				// complete stack trace into f.
    				panic(p)
    			}
    		}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:31:33 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc

      double GetOpCost(mlir::Operation* op) const override {
        float cost = 0.0;
        int64_t count;
        if (ArithmeticCountUtilHelper::GetFirstOutputCount(op, &count)) {
          cost = kCPUArithmeticUnitCost * count;
        } else {
          cost = kCPUDefaultFixedValuedCost;
        }
        return cost * InferenceTypeEfficiency(GetInferenceType(op));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(GetOpCostPass)
    
      llvm::StringRef getArgument() const final { return "tfl-get-op-cost"; }
      llvm::StringRef getDescription() const final {
        return "Get cost for every op";
      }
      void runOnOperation() override;
    };
    
    void GetOpCostPass::runOnOperation() {
      auto func = getOperation();
      OpBuilder builder(func);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

        auto cost_attr = device_costs_attr.getNamed(kv.first);
        if (!cost_attr.has_value()) return std::nullopt;
        float cost = mlir::dyn_cast_or_null<mlir::FloatAttr>(cost_attr->getValue())
                         .getValueAsDouble();
        device_costs[kv.second] = cost;
      }
      return device_costs;
    }
    
    flatbuffers::Offset<SubgraphMetadata> CreateSubgraphMetadata(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. pkg/kube/kubetypes/types.go

    	// This is a *client side* filter. This means CPU/memory costs are still present for filtered objects.
    	// Use LabelSelector or FieldSelector instead, if possible.
    	ObjectFilter DynamicObjectFilter
    	// ObjectTransform allows arbitrarily modifying objects stored in the underlying cache.
    	// If unset, a default transform is provided to remove ManagedFields (high cost, low value)
    	ObjectTransform func(obj any) (any, error)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top