Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 99 for signalPassFailure (0.23 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.cc

    void OptimizePass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      populateWithGenerated(patterns);
      auto func = getOperation();
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateOptimizePass() {
      return std::make_unique<OptimizePass>();
    }
    
    static PassRegistration<OptimizePass> pass;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_pre_calibration_component.cc

      quantization_config.mutable_static_range_ptq_preset();
      quantization_config = ExpandPresets(PopulateDefaults(quantization_config));
      if (!component.Run(module_op, quantization_config).ok()) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 21:41:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/xla_call_module_to_call.cc

      MLIRContext* ctx = module_op.getContext();
      RewritePatternSet patterns(&getContext());
      patterns.add<XlaCallModuleOpToCallOp>(ctx);
      if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 20:02:00 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/test_cluster_ops_by_policy.cc

      ClusteringPolicySet policies;
      policies.Add<TestOpsClusteringPolicy>();
    
      // Initialize constraints based on the return type attributes.
      if (failed(InferFunctionBodyValuesConstraints(func, constraints)))
        return signalPassFailure();
    
      // Propagate constraints though the function body.
      auto result =
          PropagateValuesConstraints(func.getBody(), policies, constraints,
                                     /*resolve=*/false, /*emit_remarks=*/true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError()
              << "quant-stablehlo-lift-quantizable-spots-as-functions failed.";
          signalPassFailure();
        }
      }
    
      // Remove all attr_map attributes.
      module_op.walk([](Operation* op) { op->removeAttr(kAttrMapAttribute); });
    
      // Perform selective quantization. Iterates over the quantization specs and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_input_dialect_to_executor_pass.cc

          op->emitError() << error;
          return WalkResult::interrupt();
        }
    
        return WalkResult::advance();
      });
    
      if (walk_result.wasInterrupted()) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<FuncOp>>
    CreateVerifyInputDialectToExecutorPass() {
      return std::make_unique<VerifyInputDialectToExecutorPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 16:32:56 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/tfxla_device_specific_transforms.cc

              "Could not convert and remove Device specific information");
          return WalkResult::interrupt();
        }
    
        return WalkResult::advance();
      });
    
      if (walk_result.wasInterrupted()) signalPassFailure();
    }
    
    }  // namespace
    
    std::unique_ptr<mlir::OperationPass<mlir::func::FuncOp>>
    CreateTFXLADeviceSpecificTransformsPass(std::optional<StringRef> device_type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc

        signalPassFailure();
        return;
      }
    
      if (!(llvm::hasSingleElement(graph_op.GetBody().without_terminator()) &&
            llvm::isa<tf_executor::IslandOp>(graph_op.GetBody().front()))) {
        graph_op.emitError(
            "expected graph op to contain only a single island_op and a single "
            "fetch_op");
        signalPassFailure();
        return;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc

      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("Composite lowering pass failed.");
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateCompositeLoweringPass() {
      return std::make_unique<CompositeLoweringPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize_compile_and_replicate_attributes.cc

          }
          op->setAttr(tensorflow::kCompileDeviceTypeAttr, device_type);
        }
    
        return mlir::WalkResult::advance();
      });
      if (walk_result.wasInterrupted()) signalPassFailure();
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateCanonicalizeCompileAndReplicateAttributesPass() {
      return std::make_unique<CanonicalizeCompileAndReplicateAttributesPass>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.5K bytes
    - Viewed (0)
Back to top