Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 142 for GetOperation (0.18 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc

        auto fail = [&](Operation* op, std::string message) {
          op->emitError(message);
          signalPassFailure();
        };
    
        DenseMap<StringRef, func::FuncOp> entrypoints;
        auto module = getOperation();
        module.walk([&](func::FuncOp op) {
          auto visibility = SymbolTable::getSymbolVisibility(op);
          if (visibility != SymbolTable::Visibility::Public) return;
          entrypoints[op.getSymName()] = op;
        });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/convert_launch_func_to_tf_call.cc

        : public impl::ConvertLaunchFuncToTFCallPassBase<
              ConvertLaunchFuncToTFCallPass> {
      void runOnOperation() override;
    };
    
    void ConvertLaunchFuncToTFCallPass::runOnOperation() {
      ModuleOp module = getOperation();
      module.walk([&](tf_device::LaunchFuncOp launch) {
        OpBuilder builder(launch);
        auto call_op = builder.create<TF::PartitionedCallOp>(
            module.getLoc(), launch.getResultTypes(), launch.getOperands(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 21:08:09 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

      cluster_func_op.replaceAllUsesWith(xla_launch_op.getResults());
      cluster_func_op.erase();
    }
    
    void XlaRewritePass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTable symtab(module);
      OpBuilder builder(&getContext());
      module.walk([&](tf_device::ClusterFuncOp cluster_func_op) {
        RewriteCall(cluster_func_op, symtab, builder);
      });
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/strip_saved_module_metadata.cc

        for (auto namedAttr : stripAttrs) {
          func.removeResultAttr(i, namedAttr.getName());
        }
      }
    }
    
    void StripSavedModuleMetadataPass::runOnOperation() {
      auto module = getOperation();
      StripModule(module);
      module.walk(StripFunction);
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateStripSavedModuleMetadataPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/strip_tf_attributes.cc

        for (auto namedAttr : stripAttrs) {
          func.removeResultAttr(i, namedAttr.getName());
        }
      }
    }
    
    void StripTfAttributesPass::runOnOperation() {
      ModuleOp module = getOperation();
    
      // strip module itself
      auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range(
          module->getAttrs(),
          [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); }));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc

        ConversionTarget target(getContext());
        target.addIllegalOp<TF::ResizeBilinearOp, TF::ResizeNearestNeighborOp>();
        target.addLegalDialect<mlir::stablehlo::StablehloDialect>();
        if (failed(applyPartialConversion(getOperation(), target,
                                          std::move(patterns)))) {
          signalPassFailure();
        }
      }
    };
    
    std::unique_ptr<Pass> CreateSmuggleDisallowedOpsPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 01:14:04 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_tf_to_stablehlo_pass.cc

     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestTFToStablehloPass)
    
     private:
      void runOnOperation() override;
    };
    
    void TestTFToStablehloPass::runOnOperation() {
      ModuleOp module_op = getOperation();
      MLIRContext* ctx = &getContext();
      mlir::PassManager pm(ctx);
    
      AddTFToStablehloPasses(pm);
      if (!RunPassesOnModuleOp(
               /*mlir_dump_file_name=*/"test_tf_to_stablehlo_pass", pm, module_op)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 17:19:36 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. plugin/pkg/admission/security/podsecurity/admission.go

    	})
    	return l.convertedOldObject, l.convertedOldObjectError
    }
    
    func (l *lazyConvertingAttributes) GetOperation() admissionv1.Operation {
    	return admissionv1.Operation(l.Attributes.GetOperation())
    }
    
    func (l *lazyConvertingAttributes) GetUserName() string {
    	return l.GetUserInfo().GetName()
    }
    
    func convert(in runtime.Object) (runtime.Object, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 08:49:11 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  9. plugin/pkg/admission/certificates/ctbattest/admission.go

    	// attest check.
    	if newBundle.Spec.SignerName == "" {
    		return nil
    	}
    
    	// Skip the attest check when the semantics of the bundle are unchanged to support storage migration and GC workflows
    	if a.GetOperation() == admission.Update && rbac.IsOnlyMutatingGCFields(a.GetObject(), a.GetOldObject(), kapihelper.Semantic) {
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 16:26:11 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_composite_functions.cc

      // TODO: b/321729008 - move this implementation to quantization_patterns.cc.
      if (merge_fusion_with_dequantize_) {
        pm.addPass(createMergeFusionWithDequantizePass());
      }
    
      ModuleOp module_op = getOperation();
      if (const absl::Status pm_run_status =
              RunPassesOnModuleOp(mlir_dump_file_name_, pm, module_op);
          !pm_run_status.ok()) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top