Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 175 for signalPassFailure (0.16 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc

      patterns.add<QuantizeWeight>(ctx, quantization_component_spec_);
    
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
    
      if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the StableHLO dialect Quantize Weight pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizeWeightPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

                    << "Failed at " << nestedOp->getName().getStringRef().str()
                    << " op",
                tflite::metrics::ConverterErrorData::ERROR_NEEDS_FLEX_OPS);
          }
        });
        signalPassFailure();
      };
    };
    
    absl::StatusOr<OwningOpRef<mlir::ModuleOp>> LoadModule(
        MLIRContext* context, const std::string& file_name) {
      std::string error_message;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

        patterns = std::move(pattern_list);
        return success();
      }
    
      void runOnOperation() override {
        auto func = getOperation();
        if (failed(applyPatternsAndFoldGreedily(func, patterns)))
          signalPassFailure();
      }
    
      FrozenRewritePatternSet patterns;
    };
    
    }  // namespace
    
    void CreateTFStandardPipeline(OpPassManager &pm,
                                  const StandardPipelineOptions &options) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/debug/debug_test.cc

      }
    };
    
    class AlwaysFailPass
        : public mlir::PassWrapper<AlwaysFailPass, mlir::OperationPass<>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(AlwaysFailPass)
    
      void runOnOperation() override { signalPassFailure(); }
    };
    
    }  // namespace debug_test
    
    namespace {
    
    using ::testing::HasSubstr;
    using ::testing::IsEmpty;
    using ::testing::Not;
    using namespace tensorflow::debug_test;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 11:15:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

      pattern_list.add<HandleIf>(&getContext());
      FrozenRewritePatternSet patterns(std::move(pattern_list));
    
      if (failed(applyPatternsAndFoldGreedily(module, patterns))) {
        signalPassFailure();
      }
    }
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateDecomposeOptionalsPass() {
      return std::make_unique<DecomposeOptionalsPass>();
    }
    
    }  // namespace TF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      // Get runtime devices information from the closest parent module.
      auto module = getOperation();
      if (failed(CheckPreconditions(module))) signalPassFailure();
    
      mlir::TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(module, &devices)))
        return signalPassFailure();
    
      llvm::SmallVector<mlir::tf_device::ParallelExecuteOp, 4>
          tmp_parallel_execute_ops;
      std::optional<bool> is_map_oc;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        mlir::RewritePatternSet patterns(context);
        AddLiftTfliteFlexOpsPatterns(context, patterns);
        if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
          signalPassFailure();
          return;
        }
      }
    };
    
    }  // namespace
    
    void AddLiftTfliteFlexOpsPatterns(MLIRContext* context,
                                      RewritePatternSet& patterns) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc

        patterns.add<UnfuseBatchNormInferencePattern>(&getContext());
        if (failed(applyPatternsAndFoldGreedily(getOperation(),
                                                std::move(patterns)))) {
          return signalPassFailure();
        }
      }
    };
    
    std::unique_ptr<Pass> createUnfuseBatchNormPass() {
      return std::make_unique<UnfuseMhloBatchNormPass>();
    }
    
    static PassRegistration<UnfuseMhloBatchNormPass> pass;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

                                              op))) {
            return WalkResult::interrupt();
          }
          return WalkResult::advance();
        });
        if (result.wasInterrupted()) {
          return signalPassFailure();
        }
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateXlaCallModuleDeserializationPass() {
      return std::make_unique<XlaCallModuleDeserializationPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

      // parallel.
      for (auto func : module_op.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError() << "quant-quantize-weights failed.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateQuantizeWeightsPass(
        const tensorflow::quantization::QuantizationOptions& quant_options) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top