Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for pushBack (0.69 sec)

  1. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    		// Don't make other Acquire calls block on one that's doomed to fail.
    		s.mu.Unlock()
    		<-done
    		return ctx.Err()
    	}
    
    	ready := make(chan struct{})
    	w := waiter{n: n, ready: ready}
    	elem := s.waiters.PushBack(w)
    	s.mu.Unlock()
    
    	select {
    	case <-done:
    		s.mu.Lock()
    		select {
    		case <-ready:
    			// Acquired the semaphore after we were canceled.
    			// Pretend we didn't and put the tokens back.
    			s.cur -= n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/device_target.cc

        signature->push_back(AnyQuantizedType::get(
            quant.getFlags(), quant.getStorageType(), quant.getExpressedType(),
            quant.getStorageTypeMin(), quant.getStorageTypeMax()));
      } else if (auto any = spec.dyn_cast_or_null<AnyQuantizedType>()) {
        signature->push_back(any);
      } else {  // float
        signature->push_back(AnyQuantizedType());
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/cpp/views/op_view.cc

      // Initialize function arguments
      all_arguments_.push_back(OpArgumentView("AbstractContext*", "ctx"));
      for (const auto& arg : op_.Inputs()) {
        all_arguments_.push_back(OpArgumentView(arg));
      }
      for (const auto& arg : op_.Outputs()) {
        all_arguments_.push_back(OpArgumentView(arg));
      }
      for (const auto& attr : op.Attributes()) {
        all_arguments_.push_back(OpArgumentView(attr));
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc

          for (const auto& item : value.list().i())
            attrs.push_back(builder->getI64IntegerAttr(item));
          for (const auto& item : value.list().s())
            attrs.push_back(builder->getStringAttr(item));
          for (const auto& item : value.list().f())
            attrs.push_back(builder->getFloatAttr(builder->getF32Type(), item));
          for (const auto& item : value.list().b())
            attrs.push_back(builder->getBoolAttr(item));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc

      llvm::SmallVector<mlir::Type, 4> operand_types;
      if (options.has_chain) operand_types.push_back(chain_type);
      if (parser.resolveOperands(in_chains, operand_types, loc, result.operands) ||
          parser.resolveOperands(operands, tensor_type, result.operands))
        return mlir::failure();
    
      if (options.has_chain) result.types.push_back(chain_type);
      result.types.append(num_results, tensor_type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc

                    func.getArgAttrOfType<mlir::StringAttr>(i, "tf.device")) {
              input_devices.push_back(input_device.getValue());
            } else {
              input_devices.push_back("");
            }
          }
          if (auto* bound_input =
                  mlir::tf_saved_model::LookupBoundInput(func, i, symbol_table)) {
            bound_inputs.push_back(bound_input);
          }
        }
    
        llvm::SmallVector<llvm::StringRef, 4> output_names;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/fake_session.cc

          t.flat<float>().setZero();
          outputs->push_back(t);
        } else if (output_name == "dense/kernel") {
          Tensor t =
              Tensor(tensorflow::DT_FLOAT, tensorflow::TensorShape({100, 50}));
          t.flat<float>().setZero();
          outputs->push_back(t);
        } else if (output_name == "var1") {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/device_util.cc

        return it->second;
      }
    
      int new_id = names_.size();
      names_.push_back(string(name));
      id_to_device_type_.push_back(std::make_unique<DeviceType>(""));
      DeviceType* device_type = id_to_device_type_.back().get();
      TF_RETURN_IF_ERROR(DeviceNameToDeviceType(names_.back(), device_type));
    
      is_cpu_.push_back(device_type->type_string() == DEVICE_CPU);
      is_gpu_.push_back(device_type->type_string() == DEVICE_GPU);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/representative_dataset_test.cc

      *(config_1.mutable_tf_record()->mutable_path()) = "test_path_1";
      representative_dataset_configs.push_back(config_1);
    
      // Signature key is implicitly "serving_default".
      RepresentativeDatasetConfig config_2{};
      *(config_2.mutable_tf_record()->mutable_path()) = "test_path_2";
      representative_dataset_configs.push_back(config_2);
    
      const absl::StatusOr<
          absl::flat_hash_map<std::string, RepresentativeDatasetFile>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 29 04:53:21 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

            auto newTy = QuantizedType::castToExpressedType(operand.getType());
            newOperands.push_back(
                rewriter.create<TFL::DequantizeOp>(loc, newTy, operand));
            continue;
          }
    
          newOperands.push_back(operand);
        }
    
        SmallVector<Type> newResultTys;
        for (auto result : op->getResults()) {
          Type resultTy = result.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top