Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 141 for created (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables_test.cc

        std::string tmp_dir{};
        if (!env_->LocalTempFilename(&tmp_dir)) {
          return absl::InternalError("Failed to create temp file.");
        }
    
        TF_CHECK_OK(env_->CreateDir(tmp_dir));
        return tmp_dir;
      }
    
      // Parses `module_op_str` to create a `ModuleOp`. Checks whether the created
      // module op is valid.
      mlir::OwningOpRef<mlir::ModuleOp> ParseModuleOpString(
          const absl::string_view module_op_str) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

          // Create new ConstantOp-Dequantize-Operation sequences. At this moment,
          // old ConstantOp is guaranteed to have one F32->F16 cast regardless of
          // its number of users.
          rewriter.setInsertionPointAfter(op);
          auto new_const = rewriter.create<arith::ConstantOp>(
              op->getLoc(), new_result_type, new_value_attr);
          auto dq = rewriter.create<DQ>(op->getLoc(), old_result_type, new_const);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

        func::FuncOp parent_func, ModuleOp module, const std::string& name) {
      // Moves all of the Operations in 'ops' into a newly created func.FuncOp
      // function named 'name' and replaces the original ops with a call to the
      // newly created function using a tf.StatefulPartitionedCall. Here,
      // 'parent_func' is the function that holds the original set of 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)
  10. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      }
    
      SmallVector<Value> return_values;
      for (Value result : results) {
        return_values.push_back(mapping.lookupOrNull(result));
      }
      builder.create<func::ReturnOp>(location, return_values);
    
      // Create a function call to the newly created function.
      StringAttr new_func_name =
          InsertToSymbolTable(*module, *wrap_func, func_name);
      builder.setInsertionPointAfter(result_op);
      ValueRange new_results =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top