Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 105 for GetOperation (0.5 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

          ConversionPatternRewriter &rewriter) const override {
        if (!IsIllegalType(op.getOutput().getType())) return failure();
        TF::TensorProtoAttr tensor_proto_attr;
        if (!matchPattern(op.getOperation(), m_Constant(&tensor_proto_attr))) {
          return rewriter.notifyMatchFailure(op, "operand must be constant.");
        }
        auto dense_attr_or = GetDenseAttrFromTensorProtoAttr(
            tensor_proto_attr.getValue(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

    };
    
    void DenseToSparsePass::runOnOperation() {
      func::FuncOp func = getOperation();
      OpBuilder builder(func);
    
      func.walk([&](SparseOpInterface sparse_op) {
        const auto& sparse_operands = sparse_op.GetSparseOperands();
        std::vector<std::vector<int>> supported_block_size;
        for (int operand : sparse_operands) {
          auto* op = sparse_op.getOperation();
          auto value = op->getOperand(operand);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

        StringRef attr_name = attr.getName().getValue();
        if (attr_name.starts_with("tf_saved_model.")) {
          func->removeAttr(attr_name);
        }
      }
    
      auto iface = cast<FunctionOpInterface>(func.getOperation());
      for (int i = 0; i < func.getNumArguments(); ++i) {
        for (auto& attr : iface.getArgAttrs(i)) {
          const StringAttr& attr_name = attr.getName();
          if (attr_name.getValue().starts_with("tf_saved_model.")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

        // the results of the other tf_device.remote_run operations using the
        // `mapping` as appropriate.
        Operation *cloned_remote_run_op =
            builder.clone(*remote_run_op.getOperation(), mapping);
        remote_run_op.erase();
    
        // Replaces usages of the results of the original operations with the
        // results of the tf_device.remote_run operations.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

    };
    
    PromoteResourcesToArgsPass::PromoteResourcesToArgsPass(
        llvm::ArrayRef<std::string> functions) {
      functions_ = functions;
    }
    
    void PromoteResourcesToArgsPass::runOnOperation() {
      ModuleOp module = getOperation();
      if (llvm::size(functions_) == 0) {
        functions_ = {"main"};
      }
      SymbolTable symbolTable(module);
      for (const std::string& f : functions_) {
        func::FuncOp func = symbolTable.lookup<func::FuncOp>(f);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

            // Keras LSTM have 5 outputs.
            // We should make sure only the first or the second output are
            // consumed.
            if (failed(CheckOutputConsumer(op.getOperation(), 5, {0, 1})))
              return WalkResult::interrupt();
          }
          return WalkResult::advance();
        });
    
        if (result.wasInterrupted()) return failure();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

      if (!tf_dialect) {
        getOperation().emitError() << "'tf' dialect is not registered";
        return signalPassFailure();
      }
    
      // Find islands with a single `tf_device.replicate` and create individual
      // islands per replica of the replicate.
      llvm::SmallVector<tf_executor::IslandOp, 4> replicate_op_islands;
      getOperation().walk([&](tf_executor::GraphOp graph_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

          auto new_constant_op = builder.clone(*constant_op.getOperation());
          constant_op.getResult().getUses().begin()->assign(
              dyn_cast<mlir::stablehlo::ConstantOp>(new_constant_op));
        }
      }
    }
    
    void ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass::
        runOnOperation() {
      ModuleOp module_op = getOperation();
    
      func::FuncOp main_func = FindMainFuncOp(module_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

      ModuleOp module = getOperation();
      bool success = true;
      int num_metadata = 0;
      TF::TPUReplicateMetadataOp metadata;
      MetadataMap metadata_map;
      module.walk([&](TF::TPUReplicateMetadataOp meta) {
        ++num_metadata;
        metadata = meta;
        metadata_map[meta->getAttrOfType<StringAttr>(TF::kTpuReplicateAttr).str()] =
            meta;
      });
    
      getOperation().walk([&](mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  10. plugin/pkg/admission/certificates/ctbattest/admission_test.go

    	return t.obj
    }
    
    func (t *testAttributes) GetOldObject() runtime.Object {
    	return t.oldObj
    }
    
    func (t *testAttributes) GetName() string {
    	return t.name
    }
    
    func (t *testAttributes) GetOperation() admission.Operation {
    	return t.operation
    }
    
    func (t *testAttributes) GetUserInfo() user.Info {
    	return &user.DefaultInfo{Name: "ignored"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top