Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 108 for created (0.09 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

          // can't lower tf.Const.
          Value cst;
          if (use_mhlo_const) {
            cst = builder.create<mhlo::ConstantOp>(func_op->getLoc(), attrs);
          } else {
            cst = builder.create<TF::ConstOp>(func_op->getLoc(), attrs);
          }
          func_op.getArgument(i).replaceAllUsesWith(cst);
        }
        return module_op;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

                                             projection_type,
                                             layer_norm_scale_type};
      auto func_type = builder->getFunctionType(input_types, output_type);
    
      auto func = func::FuncOp::create(
          mlir::NameLoc::get(builder->getStringAttr("fused_func")), "fused_func",
          func_type, {});
      func.addEntryBlock();
    
      std::vector<std::string> attributes;
      if (ln) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

      for (auto attr : op.getPlatforms().getAsRange<StringAttr>()) {
        platforms.push_back(attr.getValue().str());
      }
      TF_ASSIGN_OR_RETURN(
          auto loader,
          tensorflow::XlaCallModuleLoader::Create(
              context, static_cast<int>(op.getVersion()), op.getModule().str(),
              std::move(disabled_checks), std::move(platforms),
              /*num_invocation_args=*/op.getArgs().size(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. tensorflow/c/tf_tensor.cc

    // --------------------------------------------------------------------------
    
    static void DeleteArray(void* data, size_t size, void* arg) {
      DCHECK_EQ(data, arg);
      delete[] reinterpret_cast<char*>(arg);
    }
    
    // Create an empty tensor of type 'dtype'. 'shape' can be arbitrary, but has to
    // result in a zero-sized tensor.
    static TF_Tensor* EmptyTensor(TF_DataType dtype,
                                  const tensorflow::TensorShape& shape) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

      EXPECT_EQ(compilation_status.Delta(kOldBridgeWithFallbackModeSuccess), 0);
    }
    
    TEST(LegalizeTFTest, RecordsStreamzForNoMlirFallback) {
      FunctionDef my_func =
          tensorflow::FunctionDefHelper::Create("empty", {}, {}, {}, {}, {});
    
      tensorflow::FunctionDefLibrary fdef;
      *(fdef.add_function()) = my_func;
      tensorflow::FunctionLibraryDefinition flib_def(
          tensorflow::OpRegistry::Global(), fdef);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  6. tensorflow/c/kernels.cc

    class KernelBuilderFactory
        : public ::tensorflow::kernel_factory::OpKernelFactory {
     public:
      explicit KernelBuilderFactory(TF_KernelBuilder* builder)
          : builder_(builder) {}
      ::tensorflow::OpKernel* Create(
          ::tensorflow::OpKernelConstruction* context) override {
        if (builder_->compute_function)
          return new ::tensorflow::COpKernel(context, builder_->create_function,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

      // Add i32 -> i8 requantization.
      UniformQuantizeOp uniform_quant_op = rewriter.create<UniformQuantizeOp>(
          op.getLoc(), func_result_type, op.getResults());
      cast<func::ReturnOp>(entry_func_op.getBody().front().getTerminator())
          .setOperand(0, uniform_quant_op);
    }
    
    template <typename GemmStyleOp>
    // Creates a quantized bias pattern for static and dynamic shape case
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        ModuleOp module) {
      SymbolTableCollection table;
      SymbolUserMap symbol_map(table, module);
      llvm::DenseMap<func::FuncOp, llvm::DenseSet<func::FuncOp>> caller_callee_map;
      // Creates work queue for determining reachability below.
      std::queue<func::FuncOp> function_worklist;
    
      for (auto func : module.getOps<func::FuncOp>()) {
        for (auto user : symbol_map.getUsers(func)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      auto reshape_sizes = DenseIntElementsAttr::get(reshape_type, new_shape);
      auto reshape_value =
          builder->create<TF::ConstOp>(input.getLoc(), reshape_sizes);
      return builder->create<TF::ReshapeOp>(input.getLoc(), reshape_result_type,
                                            input, reshape_value);
    }
    
    // Creates transpose op for shape to depth transform.
    TF::TransposeOp GetTransposeOpForConv2DFilter(OpBuilder* builder, Value input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

          } else {
            if (IsCompatibleTypeWithTFLCastOp(value.getType()) &&
                IsCompatibleTypeWithTFLCastOp(type)) {
              auto cast = b.create<CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            } else {
              auto cast = b.create<TF::CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            }
          }
        }
        args.append(new_args.begin(), new_args.end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top