Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 83 for GetBody (0.08 sec)

  1. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.cc

    LogicalResult UnwrapTFCustomOps(func::FuncOp fn, OpBuilder& builder) {
      llvm::SmallVector<Operation*, 4> wrapped_ops;
      fn.walk([&](TFL::CustomTfOp custom_op) {
        auto* real_op = &custom_op.getBody().front().front();
        wrapped_ops.push_back(real_op);
      });
    
      for (auto* op : wrapped_ops) {
        auto parent_op = op->getParentOfType<TFL::CustomTfOp>();
        if (!parent_op) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. mockwebserver/README.md

      // instance for every unit test.
      MockWebServer server = new MockWebServer();
    
      // Schedule some responses.
      server.enqueue(new MockResponse().setBody("hello, world!"));
      server.enqueue(new MockResponse().setBody("sup, bra?"));
      server.enqueue(new MockResponse().setBody("yo dog"));
    
      // Start the server.
      server.start();
    
      // Ask the server for its URL. You'll need this to make HTTP requests.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc

                          << ") and main() entry point in the module ("
                          << main.getFunctionType().getNumResults()
                          << " results)\n";
          return;
        }
        Region &body = main.getBody();
        if (!llvm::hasSingleElement(body)) {
          op->emitError() << "MLIR Opaque Op expects a main() entry point with a "
                             "single block\n";
          return;
        }
        Block &block = body.front();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc

      }
      return success();
    }
    
    void RewriteTPUEmbeddingOps::runOnOperation() {
      func::FuncOp func = getOperation();
      if (failed(RunOnRegion(&func.getBody()))) return signalPassFailure();
    
      func.walk([&](Operation* op) {
        for (Region& region : op->getRegions()) {
          if (failed(RunOnRegion(&region))) return signalPassFailure();
        }
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc

          inner_op->setOperand(idx_args.index(), idx_args.value());
        }
        custom_op->setAttrs(inner_op->getAttrs());
        builder.create<YieldOp>(loc, inner_op->getResults());
        custom_op.getBody().takeBody(region);
    
        op->replaceAllUsesWith(custom_op);
        op->erase();
      }
    }
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateRaiseCustomOpsPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

        apply {
          headersBuilder.removeAll(name)
        }
    
      fun getBody(): Buffer? = body?.clone()
    
      fun setBody(body: Buffer) =
        apply {
          setHeader("Content-Length", body.size)
          this.body = body.clone() // Defensive copy.
        }
    
      fun setBody(body: String): MockResponse = setBody(Buffer().writeUtf8(body))
    
      fun setChunkedBody(
        body: Buffer,
        maxChunkSize: Int,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/passes/canonicalize.cc

        if (trip_count <= 0) return failure();
    
        // TODO(fengliuai): use loopUnrollByFactor once the iter_arg is supported
    
        Block *single_block = for_op.getBody();
        IRMapping mapping;
        Value iv = for_op.getInductionVar();
        for (auto iter_op :
             llvm::zip(for_op.getRegionIterArgs(), for_op.getInitArgs())) {
          mapping.map(std::get<0>(iter_op), std::get<1>(iter_op));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 14 22:15:06 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/legalize_jax_random.cc

      if (result_tuple_ty.size() != 1) return;
      auto result_ty = mlir::dyn_cast<ShapedType>(result_tuple_ty.getType(0));
    
      func.eraseBody();
      func.addEntryBlock();
      ImplicitLocOpBuilder builder(func.getLoc(), func.getBody());
      llvm::SmallVector<int32_t> result_shape_i32;
      auto result_shape = result_ty.getShape();
      for (auto element : result_shape) {
        result_shape_i32.push_back(static_cast<int32_t>(element));
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

    }
    
    // Get the reads to hoist in the `replicate`.
    LogicalResult GetReads(FuncOp func, ReplicateOp replicate,
                           llvm::SmallVector<ReadVariableOp, 4>& reads) {
      for (Operation& op : replicate.getBody().front()) {
        if (auto read = llvm::dyn_cast<ReadVariableOp>(&op)) {
          bool is_cpu_read;
          if (failed(IsCpuRead(func, read, is_cpu_read))) return failure();
          if (is_cpu_read) reads.push_back(read);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        mockResponse.headers = headersOf()
        mockResponse.trailers = headersOf()
        mockResponse = mockResponse.removeHeader("")
        var body: Buffer? = mockResponse.getBody()
        mockResponse = mockResponse.setBody(Buffer())
        mockResponse = mockResponse.setChunkedBody(Buffer(), 0)
        mockResponse = mockResponse.setChunkedBody("", 0)
        var socketPolicy: SocketPolicy = mockResponse.socketPolicy
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top