Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for GetBody (0.26 sec)

  1. internal/rest/client.go

    		case *bytes.Buffer:
    			req.ContentLength = int64(v.Len())
    			buf := v.Bytes()
    			req.GetBody = func() (io.ReadCloser, error) {
    				r := bytes.NewReader(buf)
    				return io.NopCloser(r), nil
    			}
    		case *bytes.Reader:
    			req.ContentLength = int64(v.Len())
    			snapshot := *v
    			req.GetBody = func() (io.ReadCloser, error) {
    				r := snapshot
    				return io.NopCloser(&r), nil
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

          merged_execute.getResultTypes());
      merged_execute_launch.getBody().push_back(new Block);
    
      builder->setInsertionPointToEnd(&merged_execute_launch.GetBody());
      builder->create<tf_device::ReturnOp>(merged_execute.getLoc(),
                                           merged_execute.getResults());
    
      merged_execute.getOperation()->moveBefore(
          merged_execute_launch.GetBody().getTerminator());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

                                             FuncAttr attr) {
      func.eraseBody();
      func.addEntryBlock();
      func->setAttr(kTFImplements, attr);
      OpBuilder builder(func.getBody());
      std::string empty_option_buffer;
      auto op = builder.create<CustomOp>(
          func.getLoc(), func.getFunctionType().getResults(), func.getArguments(),
          api, CustomOption(&builder, empty_option_buffer));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

          AddRegionSideEffectsForOp(if_op.else_function().getBody(), op);
        } else if (auto while_op = dyn_cast<WhileOp>(op)) {
          AddRegionSideEffectsForOp(while_op.body_function().getBody(), op);
        } else if (auto while_region_op = dyn_cast<WhileRegionOp>(op)) {
          AddRegionSideEffectsForOp(while_region_op.getBody(), op);
        } else if (auto case_op = dyn_cast<CaseOp>(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      stablehlo_func_op.setVisibility(SymbolTable::Visibility::Private);
      stablehlo_func_op->setAttr(TF::kFromXlaCallModuleAttrName,
                                 builder.getUnitAttr());
    
      builder.createBlock(&stablehlo_func_op.getBody(), stablehlo_func_op.begin(),
                          arg_types, arg_locs);
    
      IRMapping mapper;
      // stablehlo_func_op has 1 extra arg for platform index.
      for (auto [input, stablehlo_func_arg] : llvm::zip_equal(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

    LogicalResult ConvertTflFusableOp(
        func::FuncOp func, StringRef custom_op_name,
        ArrayRef<std::pair<StringRef, Attribute>> attrs) {
      func.eraseBody();
      func.addEntryBlock();
    
      OpBuilder builder(func.getBody());
      std::string custom_option_buffer;
      if (failed(CreateTflFusableOpCustomOptions(attrs, &builder,
                                                 custom_option_buffer))) {
        return failure();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

      auto control_type = ControlType::get(builder.getContext());
      auto island = builder.create<IslandOp>(
          sub_op->getLoc(), sub_op->getResultTypes(), control_type, control_inputs);
      island.getBody().push_back(new Block);
      Block* block = &island.getBody().back();
      builder.setInsertionPointToEnd(block);
      sub_op->replaceAllUsesWith(island.getOutputs());
      sub_op->moveBefore(block, block->begin());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

        if (!ShouldIncludeInMainFunction(func_op)) continue;
    
        arg_types.append(func_op.getArgumentTypes().begin(),
                         func_op.getArgumentTypes().end());
        auto& return_op = func_op.getBody().getBlocks().front().back();
        result_types.append(return_op.getOperandTypes().begin(),
                            return_op.getOperandTypes().end());
        for (const auto& arg : func_op.getArguments()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

      let arguments = (ins
        StrAttr:$device
      );
    
      let results = (outs
        Variadic<AnyType>:$results
      );
    
      let regions = (region SizedRegion<1>:$body);
    
      let extraClassDeclaration = [{
        Block &GetBody() { return getOperation()->getRegion(0).front(); }
        bool WrapsSingleOp();
      }];
    
      let builders = [
        OpBuilder<(ins "StringAttr":$device, "TypeRange":$result_types),
        [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

    // in multiple passes over the tf_executor.graph to propagate devices in loops.
    void PropagateDevicesInGraph(
        tf_executor::GraphOp graph,
        llvm::DenseMap<Value, llvm::StringRef>& value_to_device) {
      auto ops = graph.GetBody().without_terminator();
    
      bool updated_next_iteration = false;
      do {
        updated_next_iteration = false;
        for (Operation& op : ops) {
          if (!IsSupportedExecutorOp(op)) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top