Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for cast2 (0.1 sec)

  1. src/cmd/cgo/ast.go

    	// so we use ast1 to look for the doc comments on import "C"
    	// and on exported functions, and we use ast2 for translating
    	// and reprinting.
    	// In cgo mode, we ignore ast2 and just apply edits directly
    	// the text behind ast1. In godefs mode we modify and print ast2.
    	ast1 := parse(abspath, src, parser.SkipObjectResolution|parser.ParseComments)
    	ast2 := parse(abspath, src, parser.SkipObjectResolution)
    
    	f.Package = ast1.Name.Name
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 14 15:47:06 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/InternalMavenSession.java

    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);
        }
    
        static InternalMavenSession from(org.eclipse.aether.RepositorySystemSession session) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      }
    
      absl::Status AddInput(AbstractTensorHandle* input) override {
        GraphTensor* t = dyn_cast<GraphTensor>(input);
        if (!t) {
          return tensorflow::errors::InvalidArgument(
              "Unable to cast input to GraphTensor");
        }
        TF_AddInput(op_.get(), t->output_);
        return absl::OkStatus();
      }
      absl::Status AddInputList(
          absl::Span<AbstractTensorHandle* const> inputs) override {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/DenseImmutableTable.java

        }
      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        // Casts without copying.
        ImmutableMap<C, ImmutableMap<R, V>> columnMap = this.columnMap;
        return ImmutableMap.<C, Map<R, V>>copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        ImmutableMap<R, ImmutableMap<C, V>> rowMap = this.rowMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            /*
             * We have an Iterator<E> and want to cast it to MultiExceptionListIterator. Because we're
             * inside an AbstractIteratorTester<E>, that's implicitly a cast to
             * AbstractIteratorTester<E>.MultiExceptionListIterator. The runtime won't be able to verify
             * the AbstractIteratorTester<E> part, so it's an unchecked cast. We know, however, that the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeMultiset.java

        }
        return total;
      }
    
      private long aggregateBelowRange(Aggregate aggr, @CheckForNull AvlNode<E> node) {
        if (node == null) {
          return 0;
        }
        // The cast is safe because we call this method only if hasLowerBound().
        int cmp =
            comparator()
                .compare(uncheckedCastNullableTToT(range.getLowerEndpoint()), node.getElement());
        if (cmp < 0) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental_internal.h

    #include "tensorflow/c/eager/c_api_unified_experimental.h"
    #include "tensorflow/c/tf_datatype.h"
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tensorflow/core/platform/casts.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    
    // Represents the results of the execution of an operation.
    struct OutputList {
      std::vector<AbstractTensorHandle*> outputs;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        }
        Class<? extends T> implementation = getImplementation(type);
        if (implementation != null) {
          return get(implementation);
        }
        if (type == Stream.class) {
          return type.cast(Stream.empty());
        }
        if (type.isEnum()) {
          T[] enumConstants = type.getEnumConstants();
          return (enumConstants == null || enumConstants.length == 0) ? null : enumConstants[0];
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      private static boolean equal(@Nullable Object a, @Nullable Object b) {
        return a == b || (a != null && a.equals(b));
      }
    
      // This one-liner saves us from some ugly casts
      protected Entry<K, V> entry(K key, V value) {
        return mapEntry(key, value);
      }
    
      @Override
      protected void expectContents(Collection<Entry<K, V>> expected) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. fastapi/security/oauth2.py

    from typing import Any, Dict, List, Optional, Union, cast
    
    from fastapi.exceptions import HTTPException
    from fastapi.openapi.models import OAuth2 as OAuth2Model
    from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel
    from fastapi.param_functions import Form
    from fastapi.security.base import SecurityBase
    from fastapi.security.utils import get_authorization_scheme_param
    from starlette.requests import Request
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top