Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,524 for Cast (0.06 sec)

  1. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSmartCastProvider.kt

         * smart-casts:
         *
         * ```kt
         * if (this is String) {
         *   this.substring() // 'this' receiver is explicit, so no implicit smart-cast here.
         *
         *   smartcast() // 'this' receiver is implicit, therefore there is implicit smart-cast involved.
         * }
         * ```
         */
        public fun KtExpression.getImplicitReceiverSmartCast(): Collection<KaImplicitReceiverSmartCast> =
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

                (getElementTypeOrSelf(op.getType())))) {
          return failure();
        }
    
        // Remove identity reshape with both static result and input shape.
        auto result_type = mlir::cast<ShapedType>(op.getType());
        auto input_type = mlir::cast<ShapedType>(op.getInput().getType());
    
        // Constant folding
        // If the result type isn't static, tries to derive the result type from
        // the #2 operand.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/InternalSession.java

    import static org.apache.maven.internal.impl.Utils.cast;
    
    public interface InternalSession extends Session {
    
        static InternalSession from(Session session) {
            return cast(InternalSession.class, session, "session should be an " + InternalSession.class);
        }
    
        static InternalSession from(org.eclipse.aether.RepositorySystemSession session) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Apr 23 12:55:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. pkg/kube/kclient/client.go

    	obj, exists, err := n.informer.GetIndexer().GetByKey(keyFunc(name, namespace))
    	if err != nil {
    		return ptr.Empty[T]()
    	}
    	if !exists {
    		return ptr.Empty[T]()
    	}
    	cast := obj.(T)
    	if !n.applyFilter(cast) {
    		return ptr.Empty[T]()
    	}
    	return cast
    }
    
    func (n *informerClient[T]) applyFilter(t T) bool {
    	if n.filter == nil {
    		return true
    	}
    	return n.filter(t)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

      ShapedType type;
      InspectResult result = {};
      if (auto cst = dyn_cast<ConstOp>(inst)) {
        attr = cst.getValue();
        type = mlir::cast<ShapedType>(cst.getType());
      } else if (auto cst = dyn_cast<QConstOp>(inst)) {
        attr = cst.getValue();
        type = mlir::cast<ShapedType>(cst.getType());
      } else {
        result.can_compress = false;
        return result;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

    }  // namespace
    
    Value GatherElements(Value indices, Value buffer, OpBuilder builder,
                         Location loc) {
      auto buffer_type = mlir::cast<RankedTensorType>(buffer.getType());
      auto result_shape = llvm::to_vector<8>(buffer_type.getShape());
      result_shape[0] =
          mlir::cast<RankedTensorType>(indices.getType()).getDimSize(0);
      int64_t maybe_contiguous_start = GetFirstIfIndicesAreContiguous(indices);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top