Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for use_empty (0.98 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

        func::FuncOp else_func = op.else_function();
    
        // If the If has no uses and its functions are side-effect free, then
        // remove.
        // TODO(jpienaar): Remove once recusive side-effects are supported.
        if (op.use_empty() &&
            (op.getIsStateless() ||
             (IsSideEffectFree(then_func) && IsSideEffectFree(else_func)))) {
          rewriter.eraseOp(op.getOperation());
          return success();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

      // directly.
      auto read_only_vars_fn = [&variable_v2s_to_replace](
                                   VariableV2Op variable_v2_op) {
        if (variable_v2_op.getResult().use_empty()) {
          // Erase the op when there is no user.
          variable_v2_op.erase();
          return mlir::WalkResult::advance();
        }
        if (!all_of(variable_v2_op.getResult().getUsers(), [&variable_v2_op](
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

      LogicalResult matchAndRewrite(TFL::QuantizeOp quant_op,
                                    PatternRewriter& rewriter) const override {
        if (!quant_op.getResult().use_empty()) return failure();
    
        rewriter.eraseOp(quant_op);
        return success();
      }
    };
    
    void OptimizeQuantizedOpToFloat(func::FuncOp func, MLIRContext* context) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. test/fixedbugs/issue33013.dir/a.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type G interface {
    	UsesEmpty(p interface{}) int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 10 18:26:53 UTC 2019
    - 222 bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/project/inheritance/AbstractProjectInheritanceTestCase.java

        }
    
        @Override
        @BeforeEach
        public void setUp() throws Exception {
            super.setUp();
            EmptyLifecycleBindingsInjector.useEmpty();
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java

            EmptyLifecycleBindingsInjector.lifecycleRegistry = lifecycleRegistry;
            EmptyLifecycleBindingsInjector.packagingRegistry = packagingRegistry;
        }
    
        public static void useEmpty() {
            lifecycleRegistry = emptyLifecycleRegistry;
            packagingRegistry = emptyPackagingRegistry;
        }
    
        private static Plugin newPlugin(String artifactId, String... goals) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java

            EmptyLifecycleBindingsInjector.lifecycleRegistry = lifecycleRegistry;
            EmptyLifecycleBindingsInjector.packagingRegistry = packagingRegistry;
        }
    
        public static void useEmpty() {
            lifecycleRegistry = emptyLifecycleRegistry;
            packagingRegistry = emptyPackagingRegistry;
        }
    
        private static Plugin newPlugin(String artifactId, String... goals) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top