Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for TensorFlowDialect (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_types.h"
    
    namespace mlir {
    namespace TF {
    
    class TensorFlowRegistryEffectInterfaceFallback;
    
    class TensorFlowDialect final : public Dialect {
     public:
      explicit TensorFlowDialect(MLIRContext *context);
      ~TensorFlowDialect() override;
    
      static StringRef getDialectNamespace() { return "tf"; }
    
      // Overrides to redirect to tf_type dialect.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/passes.td

      let description = [{
        Runs the pre calibration passes for post-training quantization with default
        configuration.
      }];
      let dependentDialects = [
        "mlir::stablehlo::StablehloDialect", "mlir::TF::TensorFlowDialect",
        "mlir::func::FuncDialect", "mlir::tf_executor::TensorFlowExecutorDialect",
        "mlir::mhlo::MhloDialect", "mlir::vhlo::VhloDialect",
      ];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 23:21:42 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/passes.td

      let description = [{
        Convert TF Quant ops to MHLO quant ops.
      }];
    
      let constructor = "mlir::quant::stablehlo::CreateConvertTFQuantOpsToMHLOPass()";
      let dependentDialects = ["TF::TensorFlowDialect", "chlo::ChloDialect",
                               "mhlo::MhloDialect", "tf_type::TFTypeDialect",
                               "quant::QuantizationDialect"];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 01:41:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/utils/dialect_detection_utils_test.cc

    using mlir::OperationState;
    using mlir::UnknownLoc;
    using mlir::chlo::ChloDialect;
    using mlir::TF::TensorFlowDialect;
    using tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects;
    
    class SharedUtilsTest : public ::testing::Test {};
    
    TEST_F(SharedUtilsTest, IsInFunctionalDialectPasses) {
      MLIRContext context;
      context.loadDialect<TensorFlowDialect>();
      OpBuilder opBuilder(&context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 20:33:37 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

    class MockSuccessPass
        : public PassWrapper<MockSuccessPass, OperationPass<ModuleOp>> {
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect>();
      }
    
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MockSuccessPass)
    
      explicit MockSuccessPass() = default;
    
     private:
      void runOnOperation() override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_device_assignment.cc

        default_device_ = std::string(default_device);
      }
    
      void runOnOperation() override {
        Builder builder(&getContext());
        Dialect* tf = getContext().getLoadedDialect<TensorFlowDialect>();
        getOperation().walk([&](Operation* op) {
          if (auto device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) {
            // We assign default device to ops with device attribute that is empty.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/tf_quant_ops.cc

    #define GET_OP_CLASSES
    #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/tf_quant_ops.cc.inc"
    
    namespace mlir {
    namespace quant {
    
    void RegisterOpsHook(TF::TensorFlowDialect &dialect) {
      dialect.addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/tf_quant_ops.cc.inc"
          >();
    }
    
    void RegisterOps() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 24 12:48:34 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc

      if (candidate_op == nullptr) return false;
    
      // Don't prune if candidate op might have side effects.
      if (isa_and_nonnull<TF::TensorFlowDialect>(candidate_op->getDialect())) {
        if (TF::TensorFlowDialect::CanHaveSideEffects(candidate_op)) {
          return false;
        }
      } else if (!isMemoryEffectFree(candidate_op)) {
        return false;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 16 01:49:07 UTC 2022
    - 5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/python/tfr_wrapper.cc

    PYBIND11_MODULE(tfr_wrapper, m) {
      m.def("verify", [](std::string input) {
        mlir::DialectRegistry registry;
        registry.insert<mlir::arith::ArithDialect, mlir::scf::SCFDialect,
                        mlir::TF::TensorFlowDialect, mlir::func::FuncDialect,
                        mlir::shape::ShapeDialect, mlir::TFR::TFRDialect>();
        mlir::MLIRContext ctx(registry);
        ctx.loadAllAvailableDialects();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 13 06:54:12 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/shape_inference_utils.cc

        tfg::ResultElementTypeFn result_element_type_fn,
        SmallVectorImpl<ShapedTypeComponents>& inferred_return_shapes) {
      assert(op->getName().getDialectNamespace() ==
             TensorFlowDialect::getDialectNamespace());
      return tfg::InferReturnTypeComponentsForTFOp(
          location, op, op->getOperands(), graph_version, operand_as_constant_fn,
          op_result_as_shape_fn, result_element_type_fn,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 22 13:13:44 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top