Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,865 for Cast (0.55 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

      return scalar;
    }
    
    // Calls the function `fn` with arguments provided by the given function and
    // return the CallOp. Arguments are cast to the required type before calling
    // the function.
    //
    // Requires the function to provide arguments for each of the `fn` operands
    // that is compatible for tensor cast.
    static Operation* CallFn(Location loc, const std::function<Value(int)>& get_arg,
                             func::FuncOp fn, OpBuilder* builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/passes/decompose.cc

    IntegerAttr Quantize(float value, Attribute scale_attr, Attribute zp_attr,
                         OpBuilder builder) {
      double scale = mlir::cast<FloatAttr>(scale_attr).getValueAsDouble();
      int64_t zp = mlir::cast<IntegerAttr>(zp_attr).getInt();
    
      int quantized = static_cast<int>(std::round(value / scale) + zp);
      quantized =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Throwables.java

       * @throws ClassCastException if the cause cannot be cast to the expected type. The {@code
       *     ClassCastException}'s cause is {@code throwable}.
       * @since 22.0
       */
      @GwtIncompatible // Class.cast(Object)
      @CheckForNull
      public static <X extends Throwable> X getCauseAs(
          Throwable throwable, Class<X> expectedCauseType) {
        try {
          return expectedCauseType.cast(throwable.getCause());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 06 15:38:58 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Throwables.java

       * @throws ClassCastException if the cause cannot be cast to the expected type. The {@code
       *     ClassCastException}'s cause is {@code throwable}.
       * @since 22.0
       */
      @GwtIncompatible // Class.cast(Object)
      @CheckForNull
      public static <X extends Throwable> X getCauseAs(
          Throwable throwable, Class<X> expectedCauseType) {
        try {
          return expectedCauseType.cast(throwable.getCause());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 06 15:38:58 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library_uniform_quantized.mlir

        %clip_min = "tf.Maximum"(%i32_min_filled, %input_zp) : (tensor<*xi32>, tensor<*xi32>) -> tensor<*xi32>
        %qclip_min = "tf.Cast"(%clip_min) {Truncate = false} : (tensor<*xi32>) -> tensor<*x!tf_type.qint32>
        %qclip_max = "tf.Cast"(%i32_max_filled) {Truncate = false} : (tensor<*xi32>) -> tensor<*x!tf_type.qint32>
        %relu = "tf.UniformQuantizedClipByValue"(%input, %qclip_min, %qclip_max, %input_scale, %input_zp) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 29 01:13:58 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/internal/JvmPluginsHelper.java

            sourceDirectorySet.getDestinationDirectory().convention(target.getLayout().getBuildDirectory().dir(sourceSetChildPath));
    
            DefaultSourceSetOutput sourceSetOutput = Cast.cast(DefaultSourceSetOutput.class, sourceSet.getOutput());
            sourceSetOutput.getClassesDirs().from(sourceDirectorySet.getDestinationDirectory()).builtBy(compileTask);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 04:22:29 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  7. platforms/jvm/ear/src/main/java/org/gradle/plugins/ear/descriptor/internal/DefaultDeploymentDescriptor.java

    import org.gradle.api.Action;
    import org.gradle.api.UncheckedIOException;
    import org.gradle.api.XmlProvider;
    import org.gradle.api.internal.DomNode;
    import org.gradle.api.model.ObjectFactory;
    import org.gradle.internal.Cast;
    import org.gradle.internal.IoActions;
    import org.gradle.internal.UncheckedException;
    import org.gradle.internal.file.PathToFileResolver;
    import org.gradle.internal.xml.XmlTransformer;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 19 22:06:51 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java

     */
    
    package org.gradle.api.internal.provider;
    
    import com.google.common.collect.ImmutableList;
    import org.gradle.api.Action;
    import org.gradle.api.Task;
    import org.gradle.api.Transformer;
    import org.gradle.internal.Cast;
    import org.gradle.internal.DisplayName;
    
    import javax.annotation.Nullable;
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.List;
    
    /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 20:31:29 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/DefaultSerializerRegistry.java

                }
                return Cast.uncheckedNonnullCast(typeInfo.serializer.read(decoder));
            }
    
            @Override
            public void write(Encoder encoder, T value) throws Exception {
                TypeInfo typeInfo = map(value.getClass());
                encoder.writeSmallInt(typeInfo.tag);
                Cast.<Serializer<T>>uncheckedNonnullCast(typeInfo.serializer).write(encoder, value);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

        if (!llvm::hasSingleElement(resource.cast<TensorType>()
                                        .getElementType()
                                        .cast<TF::ResourceType>()
                                        .getSubtypes()))
          return false;
    
      return true;
    }
    
    Type GetResourceSubtype(Type type) {
      return type.cast<TensorType>()
          .getElementType()
          .cast<TF::ResourceType>()
          .getSubtypes()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top