Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 382 for get_operations (0.32 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

      if (auto block_arg = mlir::dyn_cast<BlockArgument>(value))
        return block_arg.getOwner()->getParentOp();
    
      return value.getDefiningOp();
    }
    
    void TPUAnnotateDynamicShapeInputsPass::runOnOperation() {
      getOperation().walk([&](tf_device::ClusterFuncOp cluster_func_op) {
        Builder builder(cluster_func_op->getContext());
        // Skip non-tpu device cluster_func.
        auto cluster_id =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

      // TODO: b/304003568 - Add TF_TransposeOp folding logic to tflite.
      target.addIllegalOp<mhlo::DotGeneralOp, mhlo::DotOp, mhlo::TransposeOp>();
      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("mhlo to TFLite legalization failed.");
        signalPassFailure();
      }
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/quantize_variables.cc

        var_handle_op.erase();
      }
    }
    
    void QuantizeVariablesPass::runOnOperation() {
      ResourceIdMap resource_id_map;
      ResourceMap resource_map;
    
      // Collect all resource identities.
      getOperation().walk([&](TFL::VarHandleOp var_handle_op) {
        auto identity = std::make_pair(var_handle_op.getContainer().str(),
                                       var_handle_op.getSharedName().str());
        resource_id_map.insert(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

        if (op.use_empty() &&
            (op.getIsStateless() ||
             (IsSideEffectFree(then_func) && IsSideEffectFree(else_func)))) {
          rewriter.eraseOp(op.getOperation());
          return success();
        }
    
        // Extract the constant cond value.
        DenseElementsAttr cond;
        if (!matchPattern(op.getCond(), m_Constant(&cond))) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/strip_noinline_attribute.cc

     public:
      // void runOnOperation() override;
      void runOnOperation() override {
        // Strip the "tf._noinline" attribute from top-level functions.
        for (auto func_op : getOperation().getOps<func::FuncOp>())
          func_op->removeAttr("tf._noinline");
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateStripNoinlineAttributePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables_test_pass.cc

    struct FreezeVariableTestPass
        : public impl::FreezeVariablesTestPassBase<FreezeVariableTestPass> {
      void runOnOperation() override {
        TF::test_util::FakeSession session;
        if (tf_saved_model::FreezeVariables(getOperation(), &session).failed())
          signalPassFailure();
      }
    };
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeVariableTestPass() {
      return std::make_unique<FreezeVariableTestPass>();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/verify_suitable_for_graph_export_pass.cc

    class VerifySuitableForExportPass
        : public impl::VerifySuitableForExportPassBase<
              VerifySuitableForExportPass> {
     public:
      void runOnOperation() override {
        if (failed(tensorflow::VerifyExportSuitable(getOperation())))
          return signalPassFailure();
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateVerifySuitableForExportPass() {
      return std::make_unique<VerifySuitableForExportPass>();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/shlo_simplify.cc

    class SHLOSimplifyPass : public impl::SHLOSimplifyPassBase<SHLOSimplifyPass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(SHLOSimplifyPass)
    
      void runOnOperation() override {
        ModuleOp module = getOperation();
        RewritePatternSet patterns(&getContext());
        populateWithGenerated(patterns);
        PopulateFolderPatterns(patterns);
        if (failed(applyPatternsAndFoldGreedily(module, std::move(patterns)))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 03:05:20 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/registry/rest/delete.go

    	validatingAdmission, isValidatingAdmission := admit.(admission.ValidationInterface)
    
    	mutating := isMutatingAdmission && mutatingAdmission.Handles(staticAttributes.GetOperation())
    	validating := isValidatingAdmission && validatingAdmission.Handles(staticAttributes.GetOperation())
    
    	return func(ctx context.Context, old runtime.Object) error {
    		if !mutating && !validating {
    			return nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 07 17:43:41 UTC 2021
    - 9.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/metrics/metrics.go

    	if code > 600 {
    		code = 600
    	}
    	m.webhookRequest.WithContext(ctx).WithLabelValues(name, stepType, string(attr.GetOperation()), strconv.Itoa(code), strconv.FormatBool(rejected)).Inc()
    	m.webhook.observe(ctx, elapsed, name, stepType, string(attr.GetOperation()), strconv.FormatBool(rejected))
    }
    
    // ObserveWebhookRejection records admission related metrics for an admission webhook rejection.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 17:01:40 UTC 2023
    - 15.5K bytes
    - Viewed (0)
Back to top