Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for resource_type (0.33 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

        auto it =
            shared_name_to_arg_idx.insert({shared_name, block.getNumArguments()});
        if (it.second) {
          auto resource_type = op.getResult(0).getType();
          op.getResult(0).replaceAllUsesWith(
              block.addArgument(resource_type, op.getLoc()));
          AddEntryFunctionInput(
              absl::StrCat("hash_table_", it.first->getValue(), ":0"), target_func);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. internal/arn/arn_test.go

    			arn: ARN{
    				Partition:    "minio",
    				Service:      "iam",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio:iam:us-east-1::role/my-role",
    		},
    		{
    			arn: ARN{
    				Partition:    "minio",
    				Service:      "",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio::us-east-1::role/my-role",
    		},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. internal/arn/arn.go

    		Region:       serverRegion,
    		ResourceType: arnResourceTypeRole,
    		ResourceID:   resourceID,
    	}, nil
    }
    
    // String - returns string representation of the ARN.
    func (arn ARN) String() string {
    	return strings.Join(
    		[]string{
    			arnPrefixArn,
    			arn.Partition,
    			arn.Service,
    			arn.Region,
    			"", // account-id is always empty in this implementation
    			arn.ResourceType + "/" + arn.ResourceID,
    		},
    		":",
    	)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

      } else {
        first_operand_type = op.getOperand().getType();
      }
    
      auto element_type = getElementTypeOrSelf(first_operand_type);
      if (mlir::isa<TF::ResourceType>(element_type)) {
        first_operand_type =
            mlir::cast<TF::ResourceType>(element_type).getSubtypes().front();
      }
    
      auto tensor_type = mlir::dyn_cast_or_null<TensorType>(first_operand_type);
      if (!(tensor_type && tensor_type.hasRank())) {
    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/tensorflow/ir/host_runtime/tfrt_ops.cc

      }
    
      for (mlir::Value arg : getArgs()) {
        if (mlir::isa<mlir::TF::ResourceType>(
                mlir::getElementTypeOrSelf(arg.getType()))) {
          return emitOpError()
                 << "does not support passing '!tf.resource' values as arguments";
        }
      }
    
      for (mlir::Value result : getResults()) {
        if (mlir::isa<mlir::TF::ResourceType>(
                mlir::getElementTypeOrSelf(result.getType()))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

      llvm::BitVector removed_params(num_params);
      // Copy the resource-type parameters to the end.
      for (unsigned i = 0; i < num_params; ++i) {
        BlockArgument param = callee.getArgument(i);
        if (mlir::isa<TF::ResourceType>(getElementTypeOrSelf(param.getType()))) {
          removed_params.set(i);
          callee.getBody().addArgument(param.getType(), param.getLoc());
          param.replaceAllUsesWith(callee.getArguments().back());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/side_effect_analysis_util.cc

    }
    
    void MarkResourceAsReadAndWrite(
        Value value,
        SmallVectorImpl<SideEffects::EffectInstance<MemoryEffects::Effect>>&
            effects) {
      if (value.getType().cast<TensorType>().getElementType().isa<ResourceType>()) {
        effects.emplace_back(MemoryEffects::Read::get(), value,
                             ResourceEffects::Variable::get());
        effects.emplace_back(MemoryEffects::Write::get(), value,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 00:33:17 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ArchivesContinuousIntegrationTest.groovy

            def outputDir = file("unpack")
            def sourceFile = file(source)
    
            buildFile << """
                task unpack(type: Sync) {
                    from($type(resources.$resourceType("${sourceFile.toURI()}")))
                    into("unpack")
                }
            """
    
            when:
            packDir.file("A").text = "original"
            packDir."$packType"(sourceFile)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. tools/bug-report/pkg/config/config.go

    // limitations under the License.
    
    package config
    
    import (
    	"encoding/json"
    	"errors"
    	"fmt"
    	"math"
    	"strings"
    	"time"
    )
    
    type ResourceType int
    
    const (
    	Namespace ResourceType = iota
    	Deployment
    	Pod
    	Label
    	Annotation
    	Container
    )
    
    // SelectionSpec is a spec for pods that will be Include in the capture
    // archive. The format is:
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Nov 04 12:07:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc

        // unwrap until we get to the inner tensor<...>.
        auto tensor =
            llvm::dyn_cast<TensorType>(var_handle_op.getResource().getType());
        if (!tensor) return nullptr;
        TF::ResourceType resource =
            llvm::dyn_cast<TF::ResourceType>(tensor.getElementType());
        if (!resource || resource.getSubtypes().size() != 1) return nullptr;
        return resource.getSubtypes().front();
      } else if (auto global_tensor_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top