Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 293 for runOnOperation (0.23 sec)

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

      }
    
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect, func::FuncDialect>();
      }
    
     private:
      void runOnOperation() override;
    
      // Returns the function library for the given quantization method and opset
      // pair.
      llvm::StringRef GetFunctionLibrary(QuantMethod quantization_method,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

        registry.insert<TF::TensorFlowDialect>();
      }
    
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MockSuccessPass)
    
      explicit MockSuccessPass() = default;
    
     private:
      void runOnOperation() override {
        getOperation().walk([](Operation* nestedOp) {
          nestedOp->emitError()
              << "Error at " << nestedOp->getName().getStringRef().str() << " op";
        });
      };
    };
    
    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/extract_tpu_copy_with_dynamic_shape_op.cc

    class ExtractTPUCopyWithDynamicShapeOpPass
        : public impl::ExtractTPUCopyWithDynamicShapeOpPassBase<
              ExtractTPUCopyWithDynamicShapeOpPass> {
      void runOnOperation() override;
    };
    
    // Finds op that created a given value. If the value is a BlockArgument, this
    // returns the owner of the Block.
    Operation* GetOpOfValue(Value value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

      explicit LiftQuantizableSpotsAsFunctionsPass(
          QuantizationSpecs quantization_specs)
          : quantization_specs_(std::move(quantization_specs)) {}
    
     private:
      void runOnOperation() override;
    
      // No explicit quantization spec is specified by default. Implicitly this
      // means that all quantizable units will be identified and lifted.
      QuantizationSpecs quantization_specs_{};
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc

    class SplitIntoIslandPerOpPass
        : public impl::SplitIntoIslandPerOpPassBase<SplitIntoIslandPerOpPass> {
     public:
      void runOnOperation() override;
    };
    
    void SplitIntoIslandPerOpPass::runOnOperation() {
      func::FuncOp func = getOperation();
    
      if (func.isExternal()) {
        // Just ignore the op if this is an external func with no body.
        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)
  6. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

        this->fold_transpose_in_ops_ = fold_transpose_in_ops;
      }
      MoveTransposesPass(const MoveTransposesPass& pass) {}
    
      void runOnOperation() final;
    };
    
    using Permutation = SmallVector<int64_t, 4>;
    
    void LayoutAssignmentPass::runOnOperation() {
      func::FuncOp func = getOperation();
    
      // Get runtime devices information from the closest parent module.
      RuntimeDevices devices;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/drop_savedmodel_semantics.cc

      }
    
      // NOTE: The implementation is mostly copypasted from
      // third_party/tensorflow/compiler/mlir/tfrt/transforms/lower_saved_model.cc
      // with the original code trimmed and adapted as needed.
      void runOnOperation() override {
        auto module = getOperation();
        if (!tf_saved_model::HasTfSavedModelSemantics(module)) return;
    
        // Clean up functions from tf_saved_model attributes.
        OpBuilder builder(module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 13 23:39:10 UTC 2022
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

        return "Inserts a new function that wraps a SaveV2 op. The SaveV2 op saves "
               "the values of the VarHandleOps that are found in the initializer "
               "function of 'restore_op' type.";
      }
    
      void runOnOperation() override;
    };
    
    // Finds `tf.AssignVariableOp(tf.VarHandleOp, tf.Const)` patterns and removes
    // `tf.AssignVariableOp`s and `tf.Const`s. Collects and returns the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc

     public:
      explicit QuantizeWeightPass(
          QuantizationComponentSpec quantization_component_spec)
          : quantization_component_spec_(quantization_component_spec) {}
    
     private:
      void runOnOperation() override;
      QuantizationComponentSpec quantization_component_spec_;
    };
    
    // Collects quantizable target ops, then insert Q-DQ quantization patterns.
    class QuantizeWeight : public OpRewritePattern<ConstantOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

      StringRef getArgument() const final { return "tfl-parse-stablehlo-ops"; }
      StringRef getDescription() const final {
        return "This pass will legalize TFLite custom Ops to StableHLO ops.";
      }
    
     private:
      void runOnOperation() override;
    
      void getDependentDialects(DialectRegistry& registry) const override {
        mlir::stablehlo::registerAllDialects(registry);
      }
      inline TFL::ConstBytesAttr CustomOption(OpBuilder* builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top