Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 211 for GetOperation (0.22 sec)

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

    }
    
    void GraphPruningPass::runOnOperation() {
      for (const auto& op_name : ops_to_preserve_) {
        ops_to_preserve_ids_.insert(mlir::StringAttr::get(&getContext(), op_name));
      }
      if (!CanPruneGraph(getOperation())) return;
      getOperation().walk(
          [this](tf_executor::GraphOp graph) { PruneGraph(graph); });
    }
    
    // An op should be preserved if either its identifier is contained in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc

      target.addLegalDialect<TFL::TensorFlowLiteDialect>();
      target.addLegalDialect<arith::ArithDialect>();
    
      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("Composite lowering pass failed.");
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h

     public:
      LiftVariablesTestPass() { session_ = new FakeSession(); }
    
      ~LiftVariablesTestPass() override { delete session_; }
    
      void runOnOperation() override {
        ModuleOp module = getOperation();
        if (failed(LiftVariables(module, session_))) signalPassFailure();
      }
    
     private:
      Session* session_;
    };
    
    // This pass is only available in the tf-opt binary for testing.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 21 15:49:06 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  4. tests/integration/telemetry/api/testdata/attributegen.yaml

        - output_attribute: istio_responseClass
          match:
          - value: 2xx
            condition: response.code >= 200 && response.code <= 299
        - output_attribute: istio_operationId
          match:
          - value: getoperation
            condition: request.method == 'GET'
        - output_attribute: istio_grpcResponseStatus
          match:
          - value: OK
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 00:53:57 UTC 2024
    - 639 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc

            f.removeResultAttr(i, a.getName());
          }
        }
      }
    }
    
    void AddFunctionsForExportedNamesPass::runOnOperation() {
      Block& module_body = getOperation().getRegion().front();
      for (auto f :
           llvm::make_early_inc_range(getOperation().getOps<func::FuncOp>())) {
        auto exported_names = GetExportedNames(f);
        if (exported_names.empty() || !f.isPublic()) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/constant_op_device_assignment.cc

        : public impl::ConstantOpDeviceAssignmentPassBase<
              ConstantOpDeviceAssignmentPass> {
      void runOnOperation() override;
    };
    
    void ConstantOpDeviceAssignmentPass::runOnOperation() {
      ModuleOp module = getOperation();
    
      module.walk([&](TF::ConstOp op) {
        // Keep the ConstOp if the op already have the device attribute.
        if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc

        : public impl::LegalizeWhilePassBase<LegalizeWhilePass> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeWhilePass)
      void RunOnFunction(func::FuncOp func);
    
      void runOnOperation() override {
        for (auto op : getOperation().getOps<func::FuncOp>()) RunOnFunction(op);
      }
    };
    
    }  // namespace
    
    // Inserts call to the given function into the 'region'.
    void CreateRegionWithCall(func::FuncOp func, Region& region, Location loc) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init_test_pass.cc

     public:
      void runOnOperation() final {
        static tensorflow::Session* session = new TF::test_util::FakeSession();
        if (failed(tf_saved_model::InitializeVariablesInSessionInitializer(
                getOperation(), session)))
          signalPassFailure();
      }
    
     private:
    };
    }  // anonymous namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateInitializeVariablesInSessionInitializerTestPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go

    	// going to change the object, and attr.Object will be a DeleteOptions
    	// rather than a namespace object.
    	if attr.GetResource().Resource == "namespaces" &&
    		len(attr.GetSubresource()) == 0 &&
    		(attr.GetOperation() == admission.Create || attr.GetOperation() == admission.Update) {
    		accessor, err := meta.Accessor(attr.GetObject())
    		if err != nil {
    			return nil, err
    		}
    		return accessor.GetLabels(), nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/operations/BuildOperationFailure.java

        }
    
        protected BuildOperationFailure(BuildOperation operation, String message, Throwable cause) {
            super(message, cause);
            this.operation = operation;
        }
    
        public BuildOperation getOperation() {
            return operation;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top