Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,343 for Auto (0.06 sec)

  1. tensorflow/compiler/mlir/lite/quantization/numerical_utils_test.cc

    }
    
    TEST(NumericalUtils, ActivationRange) {
      // zero point = 0
      auto a =
          CalculateQuantizedRange(1e-6, 0, std::nullopt, std::nullopt, -128, 127);
      ASSERT_EQ(a.first, -128);
      ASSERT_EQ(a.second, 127);
    
      auto b = CalculateQuantizedRange(1e-6, 0, 0.0, std::nullopt, -128, 127);
      ASSERT_EQ(b.first, 0);
      ASSERT_EQ(b.second, 127);
    
      auto c = CalculateQuantizedRange(1e-6, 0, -1.0, 1.0, -128, 127);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

      if (!devices.has_value()) {
        return op->emitOpError()
               << "devices attribute is not present in 'tf.device.replicate' op";
      }
      auto logical_core_name =
          tensorflow::GetDeviceAliasForLogicalCore(logical_core);
      auto tpu_replica = devices.value().get(logical_core_name);
      if (!tpu_replica) {
        return op->emitOpError()
               << "requires device ordinal from device " << logical_core_name
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

                                   llvm::BitVector& erase_indices) {
      auto terminator = func.front().getTerminator();
      int num_operands = terminator->getNumOperands();
      erase_indices.resize(num_operands);
      for (auto arg_index : arguments_to_erase) {
        auto argument = func.getArgument(arg_index);
        for (auto& use : argument.getUses()) {
          if (llvm::isa<func::ReturnOp, TF::YieldOp>(use.getOwner())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

      std::vector<ResultType> res;
      res.reserve(num_results);
    
      auto lhs_start = lhs_vals.begin();
      auto rhs_start = rhs_vals.begin();
    
      for (int i = 0; i < num_results; ++i) {
        auto lhs_val = lhs_splat ? *lhs_start : *(lhs_start++);
        auto rhs_val = rhs_splat ? *rhs_start : *(rhs_start++);
        auto signed_lhs_val = AddSign(lhs_val);
        auto signed_rhs_val = AddSign(rhs_val);
        if (signed_rhs_val.isZero()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/device_compiler_test.cc

      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      Scope scope = Scope::NewRootScope().ExitOnError();
      auto a = ops::_Arg(scope.WithOpName("A"), DT_INT32, 0);
      auto b = ops::_Arg(scope.WithOpName("B"), DT_INT32, 1);
      auto c = ops::Add(scope.WithOpName("C"), a, b);
      auto d = ops::_Retval(scope.WithOpName("D"), c, 0);
      TF_RETURN_IF_ERROR(scope.ToGraph(graph.get()));
      return graph;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc

        for (auto& bb : fn) {
          for (auto& inst : bb) {
            auto attr_id = mlir::StringAttr::get(context, "value");
            if (auto attr = inst.getAttrOfType<mlir::ElementsAttr>(attr_id)) {
              mlir::Attribute rand_val;
              mlir::Type element_type = attr.getShapedType().getElementType();
              if (mlir::isa<mlir::IntegerType>(element_type)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 11:51:44 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

      auto tf_matmul_op = cast<TF::MatMulOp>(op);
      auto lhs = op->getOperand(0);
      auto rhs = op->getOperand(1);
      auto transpose = [&](Value input) -> std::pair<LogicalResult, Value> {
        RankedTensorType type =
            mlir::dyn_cast_or_null<RankedTensorType>(input.getType());
        if (!type || type.getRank() != 2) return {failure(), nullptr};
    
        auto permute_attr = DenseIntElementsAttr::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

      // Remove the assign ops.
      for (const auto& entry : var_access_info.per_resource_info) {
        const auto& info = entry.getSecond();
        if (info.assign) info.assign->erase();
      }
    
      // Remove the read ops if they have no more uses.
      for (const auto& entry : var_access_info.per_resource_info) {
        const auto& info = entry.getSecond();
        if (info.read->use_empty()) info.read->erase();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/op_or_arg_name_mapper.cc

      if (auto* op = op_or_val.dyn_cast<mlir::Operation*>()) {
        auto name_from_loc = mlir::GetNameFromLoc(op->getLoc());
        if (!name_from_loc.empty()) return name_from_loc;
        // If the location is none of the expected types, then simply use name
        // generated using the op type.
        return std::string(op->getName().getStringRef());
      }
      auto val = op_or_val.dyn_cast<mlir::Value>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc

      func.walk([&](Operation* op) {
        b.setInsertionPoint(op);
        if (auto dq = llvm::dyn_cast<DequantizeOp>(op)) {
          auto dcast = b.create<quantfork::DequantizeCastOp>(
              dq.getLoc(), dq.getOutput().getType(), dq.getInput());
          dq.getOutput().replaceAllUsesWith(dcast);
          dq.erase();
        } else if (auto q = llvm::dyn_cast<QuantizeOp>(op)) {
          auto qcast = b.create<quantfork::QuantizeCastOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 02:50:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top