Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 182 for created (0.38 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/tfr/passes/decompose.cc

              attr_cst =
                  builder.create<ConstOp>(op->getLoc(), output_type, attribute);
            } else {
              attr_cst = builder.create<mlir::arith::ConstantOp>(
                  op->getLoc(), cast<TypedAttr>(attribute));
            }
            new_operands.push_back(attr_cst);
          }
        }
    
        // Create the TFR call op
        auto new_op = builder.create<CallOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_experimental.cc

      TF_Output output{dequeue_op, 0};
      TF_Tensor* ret;
      TF_SessionRun(session, /*run_options*/ nullptr,
                    // input related parameters
                    /*inputs*/ nullptr, /*input_values*/ nullptr, /*ninputs*/ 0,
                    // output related parameters
                    /*outputs*/ &output, /*output_values*/ &ret,
                    /*noutputs*/ 1,
                    /*targets*/ nullptr, /*ntargets*/ 0,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      // (a) read-only. These reads can be replaced by a hoisted read created
      //        before the WhileOp (similar to if and case).
      // (b) written: since the value is written in the loop (which can only in
      //        loop body, all these will become loop variables. Since all resource
      //        variables are removed from the loop variabled during
      //        canonicalizationW, we need to create new operand/result slots. The
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  9. tensorflow/c/while_loop_test.cc

    }
    
    // This is a basic test to make sure the C++ gradient code can handle while
    // loops created by the C API (which calls the C++ API under the hood). There
    // are more while loop gradient tests in cc/framework/while_gradients_test.cc.
    TEST_F(CApiWhileLoopTest, Gradients) {
      Init(1);
    
      // Create loop: while (i < 10) i += 1
      TF_Operation* ten = ScalarConst(10, params_->cond_graph, s_);
      TF_Operation* less_than =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

      if (only_one_return_value) {
        return_types.resize(1);
      }
    
      auto type = FunctionType::get(region.getContext(), input_types, return_types);
    
      // Create new function and extract region body into the function.
      auto outlined_func = builder.create<func::FuncOp>(loc, name, type);
      Region& func_region = outlined_func.getBody();
      func_region.takeBody(region);
      Block& first_block = func_region.front();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top