Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 202 for pushBack (0.15 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device.cc

              absl::get<TFE_TensorHandle*>(inputs[i]), status));
        }
        std::vector<MaybeParallelTensorOwned> result_content;
        result_content.reserve(1);
        result_content.push_back(ParallelTensor::FromTensorHandles(
            parallel_device, std::move(components), status));
        if (TF_GetCode(status) != TF_OK) return result;
        result.emplace(std::move(result_content));
        return result;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 29 22:05:31 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

      for (int i = 0; i < op->getNumOperands(); ++i) {
        QuantState& state = GetOperandQuantState(op, i);
        if (state.immutable) {
          immutable_states.push_back(&state);
        } else if (!state.IsEmpty()) {
          mutable_states.push_back(&state);
        }
      }
    
      const int immutable_operands_num = immutable_states.size();
      const int mutable_operands_num = mutable_states.size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/tools/tflite_op_coverage_spec_getters_gen.cc

      switch (act_type) {
        case InputDataType::INT8: {
          required_types.push_back(GetTypeToStringRepresentation().at("QI8"));
          break;
        }
        case InputDataType::UINT8: {
          required_types.push_back(GetTypeToStringRepresentation().at("QUI8"));
          break;
        }
        case InputDataType::INT16: {
          required_types.push_back(GetTypeToStringRepresentation().at("QI16"));
          break;
        }
        default: {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

          if (tensor_resource_shape.is_resource) {
            arg_shapes_copy.push_back(llvm::ArrayRef<int64_t>());
            continue;
          }
          size_t start = offset;
          for (tensorflow::TensorShapeDim dim : tensor_resource_shape.shape) {
            shape_backing[offset] = dim.size;
            ++offset;
          }
          if (offset == start) {
            arg_shapes_copy.push_back(llvm::ArrayRef<int64_t>());
          } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

          if (has_external_uses) {
            launch_results.push_back(result);
            launch_result_types.push_back(result.getType());
          }
        }
      }
    
      builder->setInsertionPointAfter(before_op);
      auto launch = builder->create<tf_device::LaunchOp>(
          before_op->getLoc(), builder->getStringAttr(host_device),
          launch_result_types);
      launch.getBody().push_back(launch_block);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc

                                builder.getType<fallback::TFAllocatorType>(),
                                result.operands))
        return mlir::failure();
    
      // The first result is a chain.
      result.types.push_back(builder.getType<compiler::ChainType>());
    
      fallback_common::ParseExecuteOpOptions parse_options;
      parse_options.has_chain = false;
      parse_options.has_key = true;
      parse_options.has_device = true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

        for (auto& replica : replicas)
          island_operands.push_back(replica.getControl());
    
        builder.setInsertionPoint(island_op);
        auto island_sink = builder.create<tf_executor::IslandOp>(
            island_op.getLoc(), llvm::ArrayRef<Type>{},
            tf_executor::ControlType::get(island_op.getContext()), island_operands);
        island_sink.getBody().push_back(new Block);
        builder.setInsertionPointToEnd(&island_sink.GetBody());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

          func_type, {});
      func.addEntryBlock();
    
      std::vector<std::string> attributes;
      if (ln) {
        attributes.push_back(kLayerNormalizedLstmCellSimple);
      } else {
        attributes.push_back(kLstmCellSimple);
      }
    
      if (cifg) {
        attributes.push_back(kCoupleInputForgetGates);
      }
    
      mlir::StringAttr attr_values =
          builder->getStringAttr(llvm::join(attributes, ","));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

          return input->emitOpError() << "requires " << num_inputs << " operands";
        if (is_packed) {
          packed_inputs.push_back(input->getOperand(0));
          packed_ops.push_back(input);
        } else {
          replicated_inputs.push_back(
              {input->getOperands(), input->getOperand(0).getType()});
          replicated_ops.push_back(input);
        }
      }
    
      // Create `ordered_tpu_replicate_inputs` which contains the final ordered
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

      llvm::SmallVector<ParsedDevice, 8> matching_devices;
      for (const auto& device : devices)
        if (DeviceNameUtils::IsCompleteSpecification(spec, device))
          matching_devices.push_back(device);
      return matching_devices;
    }
    
    // Create error message for a conflicting attribute of a device.
    template <typename T>
    absl::Status MismatchedTPUSystemAttributeErr(absl::string_view attribute, T a,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
Back to top