Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,196 for Reserve (0.25 sec)

  1. tensorflow/cc/client/client_session.cc

      }
    
      std::vector<string> output_tensor_names;
      output_tensor_names.reserve(fetch_outputs.size());
      for (auto const& output : fetch_outputs) {
        output_tensor_names.push_back(output.name());
      }
      std::vector<string> target_node_names;
      target_node_names.reserve(run_outputs.size());
      for (auto const& output : run_outputs) {
        target_node_names.push_back(output.node()->name());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:04:10 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

                                            OpBuilder &rewriter) {
      auto i64_type = rewriter.getIntegerType(64);
      if (types.size() > 1) {
        llvm::SmallVector<mlir::Attribute> v;
        v.reserve(types.size());
        for (const mlir::Type &t : types) {
          if (mlir::isa<mhlo::TokenType>(t)) continue;
          auto layout = GetTPUInfeedLayout({t}, rewriter);
          if (failed(layout)) return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. pkg/scheduler/apis/config/v1/default_plugins.go

    	defaultPlugins.Score = mergePluginSet(logger, defaultPlugins.Score, customPlugins.Score)
    	defaultPlugins.Reserve = mergePluginSet(logger, defaultPlugins.Reserve, customPlugins.Reserve)
    	defaultPlugins.Permit = mergePluginSet(logger, defaultPlugins.Permit, customPlugins.Permit)
    	defaultPlugins.PreBind = mergePluginSet(logger, defaultPlugins.PreBind, customPlugins.PreBind)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. pkg/scheduler/testing/framework/fake_plugins.go

    		}, nil
    	}
    }
    
    // FakeReservePlugin is a test reserve plugin.
    type FakeReservePlugin struct {
    	Status *framework.Status
    }
    
    // Name returns name of the plugin.
    func (pl *FakeReservePlugin) Name() string {
    	return "FakeReserve"
    }
    
    // Reserve invoked at the Reserve extension point.
    func (pl *FakeReservePlugin) Reserve(_ context.Context, _ *framework.CycleState, _ *v1.Pod, _ string) *framework.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

        }
        return FoldAdaptor(operation);
      }
    
      // Gets a list of ElementsAttr behind each constant operand.
      llvm::SmallVector<ElementsAttr> OperandData() {
        llvm::SmallVector<ElementsAttr> res;
        res.reserve(operation_->getNumOperands());
        for (auto opr : operation_->getOperands()) {
          auto op = llvm::dyn_cast<stablehlo::ConstantOp>(opr.getDefiningOp());
          res.push_back(op.getValue());
        }
        return res;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/unified_api_testutil.cc

        absl::flat_hash_set<int> null_indices;
        {
          AbstractContextPtr func_ctx(BuildFunction(fn_name));
          std::vector<AbstractTensorHandle*> func_inputs;
          func_inputs.reserve(inputs.size());
          TF_RETURN_IF_ERROR(
              CreateParamsForInputs(func_ctx.get(), inputs, &func_inputs));
          std::vector<AbstractTensorHandle*> model_outputs;
          model_outputs.resize(outputs.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc

      quant::QuantizedType convertFakeQuantAttrsToType(ConstFakeQuantPerAxis fqOp,
                                                       Type expressedType) const {
        SmallVector<double, 4> min, max;
        min.reserve(fqOp.getMin().size());
        max.reserve(fqOp.getMax().size());
        for (auto m : fqOp.getMin())
          min.push_back(cast<FloatAttr>(m).getValueAsDouble());
        for (auto m : fqOp.getMax())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc

                            llvm::SmallVectorImpl<int64_t>* shape) {
      shape->reserve(input_shape.dims());
      for (const auto& d : input_shape) {
        shape->push_back(d.size == kTFDynamicSize ? ShapedType::kDynamic : d.size);
      }
    }
    
    Status ConvertToMlirShape(const TensorShapeProto& input_shape,
                              llvm::SmallVectorImpl<int64_t>* shape) {
      shape->reserve(input_shape.dim_size());
      auto& dims = input_shape.dim();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/variable_info_util.cc

                                      const std::set<int>* variables_updated,
                                      std::vector<VariableInfo>* result) {
      result->clear();
      result->reserve(variable_indices.size());
      for (int var_idx : variable_indices) {
        Var* variable = nullptr;
        if (inputs[var_idx]->NumElements() == 0) {
          return errors::InvalidArgument("Empty resource tensor passed  at index ",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

      if (!session) return module.emitOpError() << "no session provided";
    
      // Read all resource variables from the session.
      std::vector<std::string> variable_names;
      variable_names.reserve(resource_names.size());
      for (StringRef name : resource_names) variable_names.push_back(name.str());
    
      std::vector<Tensor> resource_tensors;
      Status status = session->Run(
          /*inputs=*/{}, variable_names,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top