- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 74 for resource_type (0.2 sec)
-
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) -
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) -
staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper.go
continue } if currSingular.Resource != singular.Resource { return resourceType, fmt.Errorf("multiple possible singular resources (%v) found for %v", resources, resourceType) } } if singular.Empty() { return resourceType, fmt.Errorf("no singular of resource %v has been defined", resourceType) } return singular.Resource, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 01:55:47 UTC 2021 - 16.1K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc
// TODO(prakalps): This is a common utility and other passes use something // similar. Move to common utils. bool IsResourceType(Type type) { return type.isa<TF::ResourceType>() || (type.isa<TensorType>() && type.cast<TensorType>().getElementType().isa<TF::ResourceType>()); } SmallVector<Value> GetAccessedResources(Operation& op) { SmallVector<Value, 4> accessed_resources; for (auto operand : op.getOperands()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 5.8K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ArchivesContinuousIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
}; // Returns the type of the local variable for the stack size. Type GetSizeVarType(OpBuilder builder) { auto size_type = cutil::GetSizeType(builder); return RankedTensorType::get( {}, TF::ResourceType::get(ArrayRef<TensorType>{size_type}, builder.getContext())); } // Returns the aliasing argument number of a fucntion return value if it simply
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
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) -
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) -
tensorflow/compiler/mlir/tensorflow/ir/tf_types.h
using ::mlir::tf_type::HasCompatibleElementTypes; // NOLINT using ::mlir::tf_type::IsValidTFTensorType; // NOLINT using ::mlir::tf_type::OperandShapeIterator; // NOLINT using ::mlir::tf_type::ResourceType; // NOLINT using ::mlir::tf_type::ResultShapeIterator; // NOLINT using ::mlir::tf_type::ResultShapeRange; // NOLINT using ::mlir::tf_type::StringType; // NOLINT
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 29 04:41:05 UTC 2021 - 2.3K bytes - Viewed (0)