Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for set_dimension (0.25 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.cc

      QuantizedType conv_weight_quantized_type{};
    
      // Assumes NHWC format, specifying the channel dimension (3) as the
      // quantized axis.
      conv_weight_quantized_type.mutable_dimension_specs()->set_dimension(3);
    
      // The index of weight operands passed to lifted functions for convolution
      // is 1.
      StaticRangePtq& static_range_ptq_spec =
          *spec.mutable_method()->mutable_static_range_ptq();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

                                            contracting_dims_count;
    
      // This pattern only supports concating on LHS other dims (neither batch nor
      // contracting).
      if (concat.getDimension() < batch_dims_count ||
          concat.getDimension() >= batch_dims_count + lhs_other_dims_count) {
        return rewriter.notifyMatchFailure(concat,
                                           "Not concating on LHS other dims");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

            !indices_ty.getElementType().isInteger(32))
          return rewriter.notifyMatchFailure(
              op,
              "only match for the case where the second operand an I32 shapeType");
        auto sort_dim = op.getDimension();
        auto k = indices_ty.getDimSize(sort_dim);
        auto rank = keys_ty.getRank();
        if (sort_dim != rank - 1 || k < 1)
          return rewriter.notifyMatchFailure(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

            auto concat_option = tflite::CreateStablehloConcatenateOptions(
                builder_,
                mlir::cast<mlir::vhlo::IntegerV1Attr>(vhlo_op.getDimension())
                    .getValue()
                    .getSExtValue());
    
            return tflite::CreateOperator(
                builder_, opcode_index, builder_.CreateVector(operands),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

      }
    
      void rewrite(stablehlo::ConcatenateOp op,
                   PatternRewriter& rewriter) const override {
        Type output_type = op.getResult().getType();
        uint32_t axis = CastI64ToI32(op.getDimension()).value();
        rewriter.replaceOpWithNewOp<TFL::ConcatenationOp>(
            op, output_type, op.getOperands(), axis,
            /*fused_activation_function=*/rewriter.getStringAttr("NONE"));
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/schema/schema_generated.h

      enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
        VT_DIMENSION = 4
      };
      int64_t dimension() const {
        return GetField<int64_t>(VT_DIMENSION, 0);
      }
      bool Verify(::flatbuffers::Verifier &verifier) const {
        return VerifyTableStart(verifier) &&
               VerifyField<int64_t>(verifier, VT_DIMENSION, 8) &&
               verifier.EndTable();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

                   << "] different than the shape of input[0]: "
                   << input_ty_0.getShape();
          }
        }
      }
    
      ElementsAttr dimension;
      if (matchPattern(op.getDimension(), m_Constant(&dimension))) {
        if (dimension.getShapedType().getRank() != 0 ||
            dimension.getShapedType().getNumElements() != 1)
          return op.emitOpError() << "dimension must be a scalar";
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        RankedTensorType index_type = tensorflow::GetTypeFromTFTensorShape(
            input_type.getShape(), index_element_type);
    
        std::optional<int64_t> optional_axis =
            GetIntegerHLOAxisFromTFAxis(op.getDimension(), input_type.getRank());
        if (!optional_axis.has_value())
          return rewriter.notifyMatchFailure(op, "required axis");
        int64_t axis = optional_axis.value();
    
        IntegerAttr iota_dimension =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top