Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsXlaGatherWithoutBatch (0.28 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.td

      (CreateEinsumOpFromXlaDotV2Op $lhs, $rhs, $dot, $dot_dimension_numbers),
      [(IsPrecisionEmpty $precision_config)]>;
    
    // Only handles the case where batch_dimension is empty.
    def IsXlaGatherWithoutBatch :
      Constraint<CPred<"IsXlaGatherWithoutBatch($0, $1)">>;
    
    // Create Slice op from XlaGather op without batch dimension.
    def CreateSliceAndReshapeOpFromXlaGatherOpWithoutBatch : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

        return RestoreCollapsedDimensions(ranked_output_type, collapsed_dims);
      }
    
      return xla_gather_op_output_type;
    }
    
    // TODO (b/275225582): Supports Xla Gather op in general case.
    bool IsXlaGatherWithoutBatch(Value operand, Value start_indices) {
      auto operand_type = mlir::dyn_cast_or_null<ShapedType>(operand.getType());
      auto start_indices_type =
          mlir::dyn_cast_or_null<ShapedType>(start_indices.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
Back to top