Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,007 for afunction (0.12 sec)

  1. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    # Dependencies in path operation decorators
    
    In some cases you don't really need the return value of a dependency inside your *path operation function*.
    
    Or the dependency doesn't return a value.
    
    But you still need it to be executed/solved.
    
    For those cases, instead of declaring a *path operation function* parameter with `Depends`, you can add a `list` of `dependencies` to the *path operation decorator*.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    The key factor is that a dependency should be a "callable".
    
    A "**callable**" in Python is anything that Python can "call" like a function.
    
    So, if you have an object `something` (that might _not_ be a function) and you can "call" it (execute it) like:
    
    ```Python
    something()
    ```
    
    or
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    then it is a "callable".
    
    ## Classes as dependencies
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Converter.java

          implements Serializable {
        private final Function<? super A, ? extends B> forwardFunction;
        private final Function<? super B, ? extends A> backwardFunction;
    
        private FunctionBasedConverter(
            Function<? super A, ? extends B> forwardFunction,
            Function<? super B, ? extends A> backwardFunction) {
          this.forwardFunction = checkNotNull(forwardFunction);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. internal/s3select/sql/analysis.go

    // aggregation.
    //
    // Aggregation functions - An expression that involves aggregation of
    // rows in some manner. Requires all input rows to be processed,
    // before a result is returned.
    //
    // Row function - An expression that depends on a value in the
    // row. They have an output for each input row.
    //
    // Some types of a queries are not valid. For example, an aggregation
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Interners.java

          }
        }
      }
    
      /**
       * Returns a function that delegates to the {@link Interner#intern} method of the given interner.
       *
       * @since 8.0
       */
      public static <E> Function<E, E> asFunction(Interner<E> interner) {
        return new InternerFunction<>(checkNotNull(interner));
      }
    
      private static class InternerFunction<E> implements Function<E, E> {
    
        private final Interner<E> interner;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/InternersTest.java

        assertSame(not, pool.intern(not));
      }
    
      public void testAsFunction_simplistic() {
        String canonical = "a";
        String not = new String("a");
    
        Function<String, String> internerFunction =
            Interners.asFunction(Interners.<String>newStrongInterner());
    
        assertSame(canonical, internerFunction.apply(canonical));
        assertSame(canonical, internerFunction.apply(not));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Interners.java

          }
        }
      }
    
      /**
       * Returns a function that delegates to the {@link Interner#intern} method of the given interner.
       *
       * @since 8.0
       */
      public static <E> Function<E, E> asFunction(Interner<E> interner) {
        return new InternerFunction<>(checkNotNull(interner));
      }
    
      private static class InternerFunction<E> implements Function<E, E> {
    
        private final Interner<E> interner;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/path-params-numeric-validations.md

    /// note | "Technical Details"
    
    When you import `Query`, `Path` and others from `fastapi`, they are actually functions.
    
    That when called, return instances of classes of the same name.
    
    So, you import `Query`, which is a function. And when you call it, it returns an instance of a class also named `Query`.
    
    These functions are there (instead of just using the classes directly) so that your editor doesn't mark errors about their types.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/ImmutableGraph.java

        }
        return nodeConnections.buildOrThrow();
      }
    
      @SuppressWarnings("unchecked")
      private static <N> GraphConnections<N, Presence> connectionsOf(Graph<N> graph, N node) {
        Function<N, Presence> edgeValueFn =
            (Function<N, Presence>) Functions.constant(Presence.EDGE_EXISTS);
        return graph.isDirected()
            ? DirectedGraphConnections.ofImmutable(node, graph.incidentEdges(node), edgeValueFn)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  10. tensorflow/c/eager/gradients.h

    #include "tensorflow/core/common_runtime/eager/attr_builder.h"
    
    namespace tensorflow {
    namespace gradients {
    
    // =============== Experimental C++ API for computing gradients ===============
    
    // Sample gradient function:
    //
    // class AddGradientFunction : public GradientFunction {
    //  public:
    //   Status Compute(Context* ctx,
    //                  absl::Span<AbstractTensorHandle* const> grad_inputs,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top