Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 84 for PassRegistration (0.2 sec)

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

                        ::mlir::quantfork::QuantizationForkDialect>();
      }
    
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PrepareQuantizeDRQPass)
    
      // Constructor used by the PassRegistration and enforce int8 quantization.
      // This is only used by test.
      explicit PrepareQuantizeDRQPass() : op_set_(OpSet::UNIFORM_QUANTIZED) {
        quant_specs_.inference_type = tensorflow::DT_QINT8;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

            failed(ApplyVhloToStablehloPatterns(module)) ||
            failed(ApplyUnrealizedCastCanonicalization(module)))
          return signalPassFailure();
      }
    };
    
    static PassRegistration<LegalizeStablehloToVhloPass> pass_s2v;
    static PassRegistration<LegalizeVhloToStablehloPass> pass_v2s;
    
    }  // namespace odml
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/compute_cost.cc

        UpdateCost(func, total_cost, &builder);
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateComputeCostPass() {
      return std::make_unique<ComputeCostPass>();
    }
    
    static PassRegistration<ComputeCostPass> pass;
    
    }  // namespace tac
    }  // namespace TFL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 15:10:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc

    }
    
    // Creates an instance of the TensorFlow While to TFLite While pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeTFWhilePass() {
      return std::make_unique<LegalizeWhilePass>();
    }
    
    static PassRegistration<LegalizeWhilePass> pass;
    
    }  // namespace TFL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc

    // Creates an instance of `ConvertTpuModelToCpuPass`.
    std::unique_ptr<OperationPass<ModuleOp>> CreateConvertTpuModelToCpuPass() {
      return std::make_unique<ConvertTpuModelToCpuPass>();
    }
    
    static PassRegistration<ConvertTpuModelToCpuPass> pass;
    
    }  // namespace quant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_custom_call_to_composite.cc

        if (failed(applyPartialConversion(getOperation(), target,
                                          std::move(patterns)))) {
          return signalPassFailure();
        }
      }
    };
    
    static PassRegistration<LegalizeStablehloCustomCallToCompositePass>
        pass_shlo_sc2c;
    
    }  // namespace odml
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/remove_var_init_by_const.cc

        }
      } else {
        LOG(INFO) << "Initializer function with type 'restore_op' does not exist. "
                     "'RemoveVariableInitializationByConstPass' is a no-op.";
      }
    }
    
    static PassRegistration<RemoveVariableInitializationByConstPass> pass{};
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateRemoveVariableInitializationByConstPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 03 12:04:03 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

    }  // namespace
    
    // Creates an instance of the Cast BF16 ops to F32 pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateCastBf16OpsToF32Pass() {
      return std::make_unique<CastBf16OpsToF32Pass>();
    }
    
    static PassRegistration<CastBf16OpsToF32Pass> pass;
    
    }  // namespace quant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_custom_aggregation_op_to_quant_stats.cc

            op->getLoc(), op.getInput(), layer_stats, axis_stats, axis);
        op.getOutput().replaceAllUsesWith(stats_op.getResult());
        return success();
      }
    };
    
    static PassRegistration<ConvertCustomAggregationOpToQuantStatsPass> pass;
    
    void ConvertCustomAggregationOpToQuantStatsPass::runOnOperation() {
      MLIRContext *ctx = &getContext();
      RewritePatternSet patterns(ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/optimize_op_order.cc

    // Creates an instance of the TensorFlow Lite optimize op order pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateOptimizeOpOrderPass() {
      return std::make_unique<OptimizeOpOrderPass>();
    }
    
    static PassRegistration<OptimizeOpOrderPass> pass;
    
    }  // namespace TFL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top