Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getInputElementType (0.21 sec)

  1. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

        Type result_elt_type = GetFixedElementType(tfr_type_attr, rewriter);
        if (!result_elt_type) {
          return cast_op.getArg();
        }
    
        Type original_input_type =
            mlir::cast<TypeAttr>(cast_op.getInputElementType()).getValue();
        if (result_elt_type != original_input_type) {
          UnrankedTensorType result_type = UnrankedTensorType::get(result_elt_type);
          return rewriter.create<TF::CastOp>(loc, result_type, cast_op.getArg());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

      let extraClassDeclaration = [{
        // Return element type of the input tensor type. Only available when the
        // input is a MLIR built-in tensor type.
        Attribute getInputElementType() {
          if (auto ty = getArg().getType().dyn_cast<TensorType>()) {
            return TypeAttr::get(ty.getElementType());
          }
          return {};
        }
      }];
    
      let hasCanonicalizer = 1;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top