- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 675 for ucast (0.1 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc
static bool IsFoldedByDefaultPolicy(Operation* inst) { bool has_unknown_shape = false; auto get_size = [&](TypeRange types) { int64_t size = 0; for (auto t : types) { auto tensor_type = mlir::cast<TensorType>(t); // Ignore types with undefined bit widths. if (!tensor_type.getElementType().isIntOrFloat()) continue; if (!tensor_type.hasStaticShape()) { has_unknown_shape = true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc
return absl::OkStatus(); } // A `Cast` with DstT == SrcT can be introduced in MLIR as a shape cast. But // `Cast` only has shapes in the TF dialect's types, not TF graph, so it is // valid to convert a `Cast` to an `Identity`. The `_output_shapes` attribute of // the `Cast` will be preserved. This transform is needed for the graph to be // executed on TPU or GPU devices, which do not have `Cast` registered as a // runtime OpKernel.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0) -
platforms/core-runtime/io/src/main/java/org/gradle/internal/io/BufferCaster.java
import java.nio.Buffer; public class BufferCaster { /** * Without this cast, when the code compiled by Java 9+ is executed on Java 8, it will throw * java.lang.NoSuchMethodError: Method flip()Ljava/nio/ByteBuffer; does not exist in class java.nio.ByteBuffer */ @SuppressWarnings("RedundantCast") public static <T extends Buffer> Buffer cast(T byteBuffer) { return (Buffer) byteBuffer; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 08:51:13 UTC 2024 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
// indices in `val2`. bool HasEqualElementSize(Value val1, Value val2, ArrayRef<int> val1_indices, ArrayRef<int> val2_indices) { ShapedType val1_shape = mlir::cast<ShapedType>(val1.getType()); ShapedType val2_shape = mlir::cast<ShapedType>(val2.getType()); if (!val1_shape.hasRank() || !val2_shape.hasRank()) return false; int val1_result = 1; int val2_result = 1; for (auto idx : val1_indices) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td
CPred<"$0 == $1">>; // Checks if the value has rank. def HasRank : Constraint< CPred<"$0.getType().cast<ShapedType>().hasRank()">>; // Checks if the value has rank of `n`. class HasRankOf<int n> : Constraint< CPred<"$0.getType().cast<ShapedType>().hasRank() && " "$0.getType().cast<ShapedType>().getRank() == " # n>, "Checks if the value has rank of 'n'.">; // Checks if the value has static shape.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 04:55:44 UTC 2024 - 6.7K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/InternalMavenSession.java
import org.apache.maven.api.Session; import org.apache.maven.execution.MavenSession; import static org.apache.maven.internal.impl.Utils.cast; public interface InternalMavenSession extends InternalSession { static InternalMavenSession from(Session session) { return cast(InternalMavenSession.class, session, "session should be an " + InternalMavenSession.class); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultAttributesSchema.java
AttributeMatchingStrategy<T> strategy = Cast.uncheckedCast(strategies.get(attribute)); if (strategy == null) { strategy = Cast.uncheckedCast(instantiatorFactory.decorateLenient().newInstance(DefaultAttributeMatchingStrategy.class, instantiatorFactory, isolatableFactory)); strategies.put(attribute, strategy);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 16:59:54 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_controller.go
FilterFunc: func(obj interface{}) bool { if cast, ok := obj.(*corev1.ConfigMap); ok { return cast.Name == c.configmapName && cast.Namespace == c.configmapNamespace } if tombstone, ok := obj.(cache.DeletedFinalStateUnknown); ok { if cast, ok := tombstone.Obj.(*corev1.ConfigMap); ok { return cast.Name == c.configmapName && cast.Namespace == c.configmapNamespace } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 10.9K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/SocketConnection.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 11.8K bytes - Viewed (0)