Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 369 for GetOperation (0.26 sec)

  1. 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)
  2. plugin/pkg/admission/priority/admission.go

    // Note that pod validation mechanism prevents update of a pod priority.
    func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	operation := a.GetOperation()
    	// Ignore all calls to subresources
    	if len(a.GetSubresource()) != 0 {
    		return nil
    	}
    	switch a.GetResource().GroupResource() {
    	case podResource:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

                                          /*Truncate=*/builder->getBoolAttr(false));
        }
        operands.push_back(val);
      }
      return builder->create<func::CallOp>(loc, fn, operands).getOperation();
    }
    
    // Prepares for jump to the given block by introducing necessary tensor_cast
    // operations and returning Values of types required by the block.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        }
      }
    }
    
    void TpuV1BridgeExecutorIslandCoarsening::runOnOperation() {
      SymbolTable symbol_table(getOperation());
    
      // Map tpu cluster names to the functions that contain operations for this
      // cluster.
      DenseMap<StringRef, DenseSet<func::FuncOp>> tpu_funcs;
      for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) {
        func_op.walk([&](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

                            .getOperation();
      tpu_copy_with_dynamic_shape_op->moveBefore(return_op);
      return success();
    }
    
    // Update all the usage of tf_device.return op with launch op result.
    void UpdateReturnOpResultWithLaunchOpResult(tf_device::LaunchOp* launch_op) {
      auto operand_not_in_launch = [&](OpOperand& operand) {
        return !launch_op->getOperation()->isProperAncestor(operand.getOwner());
      };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/analysis/test_tensor_array_side_effect_analysis.cc

        return "tfrt-test-tensor-array-effect";
      }
      llvm::StringRef getDescription() const final {
        return "Test TensorArraySideEffectAnalysis";
      }
      void runOnOperation() override {
        auto module = getOperation();
        TensorArraySideEffectAnalysis tensor_array_side_effect_analysis(module);
    
        for (auto func_op : module.getOps<mlir::func::FuncOp>()) {
          func_op.emitRemark() << "HasAtMostTensorArrayEffect: "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 10 21:32:05 UTC 2022
    - 1.9K bytes
    - Viewed (0)
Back to top