Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for zipsum (0.29 sec)

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

    }
    
    struct EinsumDimensionNumbers {
      // Each field contains the list of dimensions appearing only in the specifed
      // arguments of the einsum op with natural ordering. For example `rhs_out`
      // contains the dimensions appearing in the RHS and the OUTPUT of the einsum
      // but not in the LHS.
      std::vector<int64_t> lhs;
      std::vector<int64_t> rhs;
      std::vector<std::tuple<int64_t, int64_t>> lhs_rhs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/batchmatmul_to_einsum.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/core/util/matmul_bcast.h"
    
    namespace mlir {
    namespace TF {
    
    namespace {
    
    // Replace TF BatchMatMul by TF Einsum op
    template <typename BatchMatMulOpType>
    class ConvertTFBatchMatMulToEinsumOp
        : public OpRewritePattern<BatchMatMulOpType> {
      using OpRewritePattern<BatchMatMulOpType>::OpRewritePattern;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

      if (!value_type.hasRank()) return false;
      if (!value_type.getElementType().isInteger(integer_width)) return false;
    
      return true;
    }
    
    // Constraint to check:
    // 1. The einsum has two inputs and one output.
    // 2. The einsum is not created by the convert function itself.
    // 3. Both inputs are int32 tensor.
    // 4. Both inputs have the graph ancestor of either const-(sub), or cast-sub.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h

    bool IsInLiftedFunc(Operation* op);
    
    // Checks if the op is inside a StableHLO op with region.
    // If the given op pointer is a nullptr, returns false.
    bool IsInStableHloOpRegion(Operation* op);
    
    // Checks if a given einsum op is supported for XlaDotV2 quantization.
    bool IsEinsumSupportedByXlaDotV2(StringAttr equation_attr);
    
    // Gets the quantization method from `op`. It is retrieved from the
    // `kQuantizationMethodAttr` string attribute. Returns
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/MissingTaskDependenciesIntegrationTest.groovy

            settingsFile """
                include "dist"
                include "lib"
            """
    
            file("dist/build.gradle").text = """
                abstract class ZipSrc extends DefaultTask {
                    @Internal
                    int countResolved
    
                    @Internal
                    abstract DirectoryProperty getSources()
    
                    @InputFiles
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 08:14:44 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

                tensor_spec.TensorSpec(
                    shape=shape, dtype=dtypes.float32, name='input_tensor'
                )
            ),
        )
        return model
    
      # Prepares sample einsum input data shapes.
      # This function returns:
      # 1. Shape for input 1
      # 2. Shape for input 2
      # 3. Shape for bias
      # 4. Signature for input 1 (Could contain None dimension)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

          }
    
          if (!is_weight_constant) {
            if (!function_name.contains("matmul") &&
                !function_name.contains("einsum")) {
              return absl::InternalError(
                  "Non-constant weights are not supported at the moment,"
                  " except matmul and einsum.");
            } else if (!quant_options_.enable_two_input_tensors() &&
                       !is_unitwise_quantization_enabled) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.cc

              function_name.contains("and_bias")) {
            spec->biases_params[2] = {{0, 1},
                                      quant::GetUniformQuantizedTypeForBias};
          }
        } else if (function_name.contains("einsum")) {
          spec->coeff_op_quant_dim[1] = -1;
          if (function_name.contains("with_bias")) {
            spec->biases_params[2] = {{0, 1},
                                      quant::GetUniformQuantizedTypeForBias};
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

    #include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tensorflow/transforms/einsum.h"
    
    namespace mlir {
    namespace quant {
    namespace {
    
    using ::tensorflow::quantization::OpSet;
    
    class PrepareLiftingPass
        : public PassWrapper<PrepareLiftingPass, OperationPass<func::FuncOp>> {
     public:
    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. requirements_lock_3_12.txt

        # via
        #   -r requirements.in
        #   h5py
        #   jax
        #   keras-nightly
        #   ml-dtypes
        #   opt-einsum
        #   scipy
        #   tb-nightly
    opt-einsum==3.3.0 \
        --hash=sha256:2455e59e3947d3c275477df7f5205b30635e266fe6dc300e3d9f9646bfcea147 \
        --hash=sha256:59f6475f77bbc37dcf7cd748519c0ec60722e91e63ca114e68821c0c54a46549
        # via
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 19:00:33 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top