Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 380 for getLoc (0.23 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

      }
    
      auto lhs_new_concat = rewriter.create<mhlo::ConcatenateOp>(
          concat->getLoc(), concat.getType().clone(lhs_new_concat_shape),
          all_dot_lhs, rewriter.getI64IntegerAttr(lhs_batch_dim));
      auto rhs_new_concat = rewriter.create<mhlo::ConcatenateOp>(
          concat->getLoc(), concat.getType().clone(rhs_new_concat_shape),
          all_dot_rhs, rewriter.getI64IntegerAttr(rhs_batch_dim));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/passes/rewrite_quantized_io.cc

                                                    .cast<quant::QuantizedType>()
                                                    .getStorageType());
            auto new_op = builder.create<TFR::CastOp>(
                returned_op->getLoc(), new_type, returned_op.getArg());
            returned_value.set(new_op.getResult());
            if (returned_op.use_empty()) {
              returned_op.erase();
            }
          } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

        // current op, so the result op has input with tensor type.
        if (auto cast_op = dyn_cast_or_null<CastOp>(input_op)) {
          Value input_to_cast = CastToNonDerivedType(rewriter, call_op.getLoc(),
                                                     cast_op, input_tfr_type);
          inputs->push_back(input_to_cast);
          if (failed(AddDerivedAttrs(rewriter, input_tfr_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

            return false;
          }
        }
        rewriter.setInsertionPointAfter(op);
        auto q = rewriter.create<quantfork::QuantizeCastOp>(op->getLoc(), cast_type,
                                                            op.getResult());
        auto dq = rewriter.create<quantfork::DequantizeCastOp>(op->getLoc(),
                                                               expressed_type, q);
        quantize_op->setOperand(quantize_operand_num, dq.getResult());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

        } else {
          return rewriter.notifyMatchFailure(bcast_op, "Unsupported element type.");
        }
        Value new_const_op =
            rewriter.create<mhlo::ConstantOp>(bcast_op.getLoc(), result);
        rewriter.replaceOp(bcast_op, {new_const_op});
        return success();
      }
    };
    
    using FoldBroadcastInDimBeforeMulOp =
        FoldBroadcastInDimBeforeBinaryElementwiseOp<mhlo::MulOp>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      auto type = result.getType();
      result.setType(converter.convertType(result.getType()));
      auto new_value = converter.materializeArgumentConversion(
          rewriter, result.getLoc(), type, {result});
      rewriter.replaceAllUsesExcept(result, new_value, new_value.getDefiningOp());
    }
    
    // Wrap operands in an an unrealized cast to create a cast to buffer any type
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc

      SmallVector<NamedAttribute> attrs{op->getAttrs()};
      attrs.push_back(call_target);
      auto custom_call = rewriter.create<mlir::stablehlo::CustomCallOp>(
          op->getLoc(), op->getResultTypes(), op->getOperands(), attrs);
      rewriter.replaceOp(op, custom_call.getResults());
      return success();
    }
    
    }  // namespace
    
    template <typename OpTy>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 01:14:04 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc

            quant_type.castFromExpressedType(expressed_type);
    
        rewriter.setInsertionPointAfter(op);
        auto q = rewriter.create<quantfork::QuantizeCastOp>(
            op->getLoc(), quantized_type, op->getResult(0));
        auto dq = rewriter.create<quantfork::DequantizeCastOp>(op->getLoc(),
                                                               expressed_type, q);
        quantizable_op->setOperand(1, dq.getResult());
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

      }
      TypeAttr type_attr = TypeAttr::get(new_type);
      auto quantize = builder.create<TFL::QuantizeOp>(value.getLoc(), new_type,
                                                      value, type_attr);
      auto dequantize = builder.create<TFL::DequantizeOp>(
          value.getLoc(), expressed_type, quantize.getOutput());
      value.replaceAllUsesWith(dequantize);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

                                                        TypeRange(types), result);
          new_forward_ops.insert(replicated_output);
          // TODO(bfontain): Check for other attributes.
          replicated_output->setAttr(kDevice, builder.getStringAttr(""));
          TF::TPUReplicatedInputOp input = builder.create<TF::TPUReplicatedInputOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
Back to top