Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 81 for GetBody (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      // TODO(b/173073199): Use shape. Enable tests in unified_api_test.cc once
      // resolved.
      Type type;
      TF_RETURN_IF_ERROR(ConvertDataTypeToTensor(dtype, builder_, &type));
      *handle =
          new MlirTensor(func_.getBody().front().addArgument(type, func_.getLoc()));
      return absl::OkStatus();
    }
    
    Status MlirAbstractOp::AddInput(AbstractTensorHandle* input) {
      if (current_ods_input_ >= op_def_->input_arg_size())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      // Move all regions from the old `mhlo.while` op to its replacement.
      new_while.getCond().takeBody(region_while.getCond());
      new_while.getBody().takeBody(region_while.getBody());
    
      // Forward result from old `mhlo.while` with replacement.
      SmallVector<Value> old_while_results = region_while.getResults();
      SmallVector<Value> new_while_results = new_while.getResults();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

              next_values_to_visit.push_back(
                  while_op.getCond().front().getArgument(operand_number));
              next_values_to_visit.push_back(
                  while_op.getBody().front().getArgument(operand_number));
              continue;
            }
    
            if (llvm::isa<mlir::TF::IdentityOp, mlir::TF::CastOp,
                          mlir::TF::ReadVariableOp>(owner)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

                                  ArrayRef<Type> dataset_types) {
      const Location loc = reduce_dataset.getLoc();
      auto while_input_types = dataset_while.getOperandTypes();
      auto& body_region = dataset_while.getBody();
      Block* body_block = builder.createBlock(&body_region);
      auto body_arguments = body_block->addArguments(
          while_input_types, SmallVector<Location>(while_input_types.size(), loc));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

    // the function body.
    std::optional<llvm::StringMap<FunctionMetadata>> GetFunctionMetadatas(
        func::FuncOp func_op) {
      llvm::StringMap<FunctionMetadata> metadatas;
      WalkResult result = func_op.getBody().walk([&](Operation *op) {
        std::string op_host = GetHost(op);
        FunctionMetadata &func_metadata = metadatas[op_host];
        func_metadata.original_name = func_op.getName();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

      void runOnOperation() override;
    };
    
    // TODO(fengliuai): migrate to use modify_io_nodes pass.
    void RemoveQuantizationAdaptorOps(func::FuncOp func) {
      mlir::OpBuilder builder(func.getBody());
      auto& bb = func.front();
      auto loc = func.getLoc();
    
      int num_args = bb.getNumArguments();
      llvm::SmallVector<Type, 4> input_types;
      input_types.reserve(num_args);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(response.status).isEqualTo("HTTP/1.1 202 That'll do pig")
      }
    
      @Test
      fun setBodyAdjustsHeaders() {
        val response = MockResponse().setBody("ABC")
        assertThat(headersToList(response)).containsExactly("Content-Length: 3")
        assertThat(response.getBody()!!.readUtf8()).isEqualTo("ABC")
      }
    
      @Test
      fun mockResponseAddHeader() {
        val response =
          MockResponse()
            .clearHeaders()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

          (*buffer_to_size)[region.getArgument(i)] = {size_arg,
                                                      it->getSecond().fixed};
        }
      };
    
      // Rewrite body.
      Region& body_region = while_op.getBody();
      modify_region_arguments(body_region);
      if (failed(DecomposeTensorListOpsInternal(
              &body_region.front(), module, buffer_to_size,
              decomposed_partitioned_call_callees))) {
        return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

          llvm::ArrayRef<std::pair<mlir::ValueRange, mlir::Type>>{},
          mlir::ValueRange{}, mlir::TypeRange{});
      builder.setInsertionPoint(&replicate.getBody().front(),
                                replicate.getBody().front().begin());
    
      llvm::SmallVector<mlir::Type, 8> result_types;
      auto cluster = builder.create<mlir::tf_device::ClusterOp>(
          mlir::UnknownLoc::get(&context), result_types);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.h

                                  const bool legacy_float_scale = false,
                                  const bool is_qdq_conversion = false)
          : fn_(func_op),
            builder_(func_op.getBody()),
            is_signed_(is_signed),
            bit_width_(bit_width),
            disable_per_channel_(disable_per_channel),
            op_quant_spec_getter_(op_quant_spec_getter),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:42:17 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top