Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for getFunctionType (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

            mlir::cast<FlatSymbolRefAttr>(sym_ref).getValue());
    
        if (!init_func_op)
          return session_initializer.emitOpError()
                 << "the initializer function does not exist";
    
        if (!init_func_op.getFunctionType().getResults().empty())
          return session_initializer.emitOpError()
                 << "the initializer function should have no output";
    
        auto exported_names = GetExportedNames(init_func_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

        // TODO(aminim) figure out the location story here
        module_ = ModuleOp::create(builder_.getUnknownLoc());
        func_ = func::FuncOp::create(
            builder_.getUnknownLoc(), name,
            builder_.getFunctionType(std::nullopt, std::nullopt));
        module_->push_back(func_);
        builder_ = OpBuilder::atBlockBegin(func_.addEntryBlock());
      }
    
      void Release() override { delete this; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

      }
    
      SmallVector<Type> output_types;
      for (const Value output : xla_call_module_op.getOutput()) {
        output_types.push_back(output.getType());
      }
    
      entry_func_op.setFunctionType(
          rewriter.getFunctionType(arg_types, output_types));
    
      // Replace argument types and locs.
      Block& entry = entry_func_op->getRegion(0).front();
      for (auto [arg, arg_type, arg_loc] :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      builder.setInsertionPointToEnd(&module.getBodyRegion().back());
      func::FuncOp func_op = builder.create<func::FuncOp>(
          module.getLoc(), name,
          builder.getFunctionType(input_types, output_types));
      func_op.setPrivate();
    
      return func_op;
    }
    
    TF::StatefulPartitionedCallOp EncapsulateOpsInFunc(
        OpBuilder& builder, const llvm::SetVector<Operation*>& ops,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top