Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 83 for GetBody (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

          arg.setType(new_arg_type);
        }
    
        // Update the function type.
        func.setType(mlir::FunctionType::get(module.getContext(),
                                             func.getBody().getArgumentTypes(),
                                             func.getFunctionType().getResults()));
      }
      return success();
    }
    
    }  // namespace tf_saved_model
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc

          PropagatePotentiallyWrittenUpFromCallee(while_op.getCond(),
                                                  while_op.getInput());
          PropagatePotentiallyWrittenUpFromCallee(while_op.getBody(),
                                                  while_op.getInput());
          return;
        }
        // `TF::BatchFunctionOp`, although it looks like a function call, does not
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

      // order, accumulating clones of defined Values into a `IRMapping`
      // and pass that map to calls to clone ops.
      OpBuilder function_builder(new_func.getBody());
      // Prefered data structure for mapping MLIR values.
      IRMapping values_in_scope;
      // Function arguments can appear as operands, so they clone should
      // be aware of them.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

        for (int i = 0; i < func.getNumArguments(); i++) {
          if (auto global = tf_saved_model::LookupBoundInputOfType<
                  tf_saved_model::GlobalTensorOp>(func, i, syms)) {
            OpBuilder builder(func.getBody());
            auto dummy = builder.create<TF::VarHandleOp>(
                global.getLoc(), func.getArgument(i).getType(), "dummy", "dummy");
            func.getArgument(i).replaceAllUsesWith(dummy.getResult());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc

      }
    
      OpBuilder builder(module.getContext());
    
      OwningOpRef<ModuleOp> stablehlo_module =
          builder.create<ModuleOp>(op.getLoc());
      builder.setInsertionPointToEnd(stablehlo_module->getBody());
    
      // Copy all referenced StableHLO functions to the new module.
      WalkResult result = WalkReachableFunctions(
          entry_func,
          [&](func::FuncOp f) -> WalkResult {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/debug/debug_test.cc

            }()) {
        context_.loadAllAvailableDialects();
    
        mlir::OpBuilder builder(&context_);
        module_ = builder.create<mlir::ModuleOp>(builder.getUnknownLoc());
    
        builder.setInsertionPointToStart(module_->getBody());
        auto func = builder.create<mlir::func::FuncOp>(  //
            builder.getUnknownLoc(), "main", builder.getFunctionType({}, {}));
        func->setAttr("tfl.func", builder.getUnitAttr());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 11:15:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc

        // the terminator). Note that the arguments' type of this block is kept as
        // `opInput`'s type.
        rewriter.createBlock(&scf_while_op.getAfter());
        Operation* body_terminator =
            createScfCondOrBody(op.getBody(), scf_while_op.getAfter(),
                                scf_block_arguments_type, rewriter);
        rewriter.replaceOpWithNewOp<scf::YieldOp>(body_terminator,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

      std::vector<Value> activation_values;
      std::vector<Value> bias_values;
    
      // First of all, collect all the values (block arguments and op results) which
      // are required to be quantized.
      for (auto arg : func.getBody().begin()->getArguments()) {
        if (UsedAsBias(arg)) {
          AddToWorkListIfUnquantized(arg, &bias_values);
        } else {
          AddToWorkListIfUnquantized(arg, &activation_values);
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      auto func = mlir::func::FuncOp::create(loc, func_name_str, func_type, {});
      module.push_back(func);
      func.addEntryBlock();
      mlir::OpBuilder op_builder(func.getBody());
    
      // Create the TF op
      const std::string tf_op_full_name = absl::StrCat("tf.", node_def.op());
      mlir::OperationState op_state(loc, tf_op_full_name);
      op_state.addOperands(func.getArguments());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

              .setStatus("HTTP/1.1 404")
              .addHeader("content-type: text/plain; charset=utf-8")
              .setBody("NOT FOUND: " + path);
        } catch (IOException e) {
          return new MockResponse()
              .setStatus("HTTP/1.1 500")
              .addHeader("content-type: text/plain; charset=utf-8")
              .setBody("SERVER ERROR: " + e);
        }
      }
    
      private MockResponse directoryToResponse(String basePath, File directory) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Jan 02 02:50:44 UTC 2019
    - 4.7K bytes
    - Viewed (0)
Back to top