Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 230 for getOperation (0.16 sec)

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

        RewritePatternSet patterns(&getContext());
        TF::PopulateDecomposeResourceOpsPatterns(&getContext(), &patterns);
    
        if (failed(applyPatternsAndFoldGreedily(getOperation(),
                                                std::move(patterns)))) {
          getOperation().emitError() << kBadDecompositionMessage;
          signalPassFailure();
        }
      }
    };
    
    #define GEN_PASS_DEF_DECOMPOSERESOURCEOPSINCLUSTERPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_canonicalization_helper.h

    template <typename OpTy, typename... Args>
    OpTy CreateTfOp(RewriterBase &b, Operation *op, Args &&...args) {
      auto ret = b.create<OpTy>(op->getLoc(), std::forward<Args>(args)...);
      CopyDeviceAndUnderscoredAttributes(op, ret.getOperation());
      return ret;
    }
    
    // Helper function to replace TF op with another op while copying all underscore
    // attributes from the TF op.
    // TODO(jpienaar): This is a workaround until behavior is established.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 12 21:57:12 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/device_attribute_to_launch.cc

          builder.create<tf_device::ReturnOp>(op->getLoc(), op->getResults())
              .getOperation();
      MLIRContext* context = launch_op.getContext();
      op->removeAttr(StringAttr::get(context, kDeviceAttr));
      op->moveBefore(return_op);
    }
    
    void DeviceAttributeToLaunch::runOnOperation() {
      const Dialect* tf_dialect = getContext().getLoadedDialect("tf");
    
      getOperation().walk([&](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

      llvm::SmallVector<TF::TPUReplicateMetadataOp, 4> metadata;
      getOperation()->walk(
          [&metadata](TF::TPUReplicateMetadataOp op) { metadata.push_back(op); });
    
      IntegerAttr num_cores_per_replica;
      if (metadata.size() == 1) {
        num_cores_per_replica = metadata.front().getNumCoresPerReplicaAttr();
      }
    
      auto result = getOperation()->walk([&num_cores_per_replica](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. staging/src/k8s.io/apiserver/pkg/admission/audit.go

    	if i == nil {
    		return i
    	}
    	return &auditHandler{Interface: i}
    }
    
    func (handler *auditHandler) Admit(ctx context.Context, a Attributes, o ObjectInterfaces) error {
    	if !handler.Interface.Handles(a.GetOperation()) {
    		return nil
    	}
    	if err := ensureAnnotationGetter(a); err != nil {
    		return err
    	}
    	var err error
    	if mutator, ok := handler.Interface.(MutationInterface); ok {
    		err = mutator.Admit(ctx, a, o)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 29 00:03:53 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top