Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 202 for pushBack (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

          // Add new control input if its defining op is not already a defining
          // op for some other operand. Update defining_ops.
          if (defining_ops.insert(new_control_input.getDefiningOp()).second) {
            operands.push_back(new_control_input);
          }
        }
        state.addOperands(operands);
        Operation* new_op = builder.create(state);
        item.replaceAllUsesWith(new_op);
        new_op->setAttrs(item.getAttrDictionary());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/gradients.cc

      }
      auto iter = backprops_.find(src);
      if (iter != backprops_.end()) {
        auto* grads = &iter->second;
        grads->push_back(dst_grad);
        if (--pending_[src.node()->id()] == 0) {
          ready_.push_back(src.node());
        }
      }
      return absl::OkStatus();
    }
    
    std::vector<bool> SymbolicGradientBuilder::GetReachableNodes() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 22K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/linalg_grad.cc

        } else {
          reduced_axes.push_back(*axis);
        }
      }
      // Get the corresponding dimensions for each reduced axis.
      std::vector<Output> reduced_dims_inputs;
      reduced_dims_inputs.reserve(reduced_axes.size());
      for (const int i : reduced_axes) {
        if (i < 0) {
          reduced_dims_inputs.push_back(
              Gather(scope, input_shape, Add(scope, Size(scope, input_shape), i)));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 20.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

      // contain zero scale for zero values.
      llvm::SmallVector<double> scales;
      for (float scale : quant_params.scale) {
        if (scale == 0) {
          scales.push_back(std::numeric_limits<float>::min());
          continue;
        }
        scales.push_back(scale);
      }
    
      // Scale size can't be zero as it is checked before.
      if (quant_params.scale.size() != 1) {
        return mlir::quant::UniformQuantizedPerAxisType::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

        Type result_type;
    
        // Include info about the activation function if applicable.
        if (fuse_activation) {
          locations.push_back(activation->getLoc());
          fused_ops.push_back(
              StringAttr::get(context, activation->getName().stripDialect()));
          result_type = activation->getResultTypes().front();
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

            if (!mlir::isa<BlockArgument>(value))
              island_control_operands.push_back(value);
          } else {
            inner_op_operands.push_back(value);
          }
        }
    
        auto island = rewriter.create<tf_executor::IslandOp>(
            loc, new_types, island_control_operands);
        island.getBody().push_back(new mlir::Block);
    
        rewriter.setInsertionPointToEnd(&island.getBody().front());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.cc

      for (auto& device_spec : specified_device_specs) {
        auto device = GetCanonicalHardwareName(device_spec);
    
        if (device == "CPU") cpu_include = true;
        device_specs->push_back(device);
      }
      if (!cpu_include) {
        device_specs->push_back("CPU");
      }
    
      // Make sure all the devices are registered.
      for (const std::string& device : *device_specs) {
        if (GetTargetHardware(device) == nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 21:39:59 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/tape.h

            // GradientTape which uses ones.
            Gradient* zero = input_tensors[target_index].ZerosLike();
            new_zeros.push_back(zero);
            in_grads.push_back(zero);
          } else {
            in_grads.push_back(nullptr);
          }
        } else {
          in_grads.push_back(current_grad->second);
        }
      }
    
      // Avoid infinite recursion. Whichever forward function we run, it'll end up
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

          for (auto list_input : list_op.getOperands()) {
            auto cast_op = dyn_cast_or_null<CastOp>(list_input.getDefiningOp());
            if (!cast_op) return failure();
            list_inputs.push_back(cast_op.getArg());
            list_input_types.push_back(cast_op.getInputElementType());
          }
          CastValuesToSameType(rewriter, call_op.getLoc(), list_input_types,
                               list_inputs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

          auto dequantize_op = llvm::cast<DequantizeOp>(returned_op);
          Value dequantized_result = dequantize_op.getInput();
          output_types.push_back(dequantized_result.getType());
          terminator->setOperand(i, dequantized_result);
          returned_op->erase();
        } else {
          output_types.push_back(returned_value.getType());
        }
      }
      auto new_func_type = builder.getFunctionType(input_types, output_types);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top