Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 313 for created (0.44 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.cc

        // checkpoint when fetched.
        saver_def.set_save_tensor_name(absl::StrCat(save_node_name, ":0"));
        return saver_def;
      } else {
        return absl::InternalError(
            absl::StrCat("Failed to create SaverDef. Fields should be either all "
                         "empty strings or all non-empty strings. Got fields: ",
                         absl::StrJoin(fields, ",")));
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/cc/gradients/array_grad.cc

                     std::vector<Output>* grad_outputs) {
      // Propagate the incoming gradient along all the selected values,
      // and zero everywhere else. Use the Pad operator for this.
      //
      // First create an Nx2 padding where N is the number of input
      // dimensions. The first column is the number of prepended zeros
      // for each dimension, and the second column is the number of
      // appended zeros.
      //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K 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/cc/framework/cc_op_gen.cc

      TF_CHECK_OK(env->NewWritableFile(dot_h_fname, &h));
      TF_CHECK_OK(env->NewWritableFile(dot_cc_fname, &cc));
      string op_header_guard;
      StartFiles(false, dot_h_fname, h.get(), cc.get(), &op_header_guard);
    
      // Create the internal versions of these files for the hidden ops.
      std::unique_ptr<WritableFile> internal_h = nullptr;
      std::unique_ptr<WritableFile> internal_cc = nullptr;
      const string internal_dot_h_fname = MakeInternal(dot_h_fname);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 17:22:47 UTC 2023
    - 17K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_function_test.cc

      void RunT(const std::vector<std::pair<TF_Operation*, TF_Tensor*>>& inputs,
                std::initializer_list<TF_Output> outputs,
                const std::vector<std::vector<int32_t>>& expected_results) {
        // Create a session for this graph
        CSession csession(host_graph_, s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
        // Run
        csession.SetInputs(inputs);
        csession.SetOutputs(outputs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc

      island_op.getControl().dropAllUses();
    
      // Break up all islands by simply creating a new island wrapping each
      // individual sub op. Do not create any control dependencies between the
      // newly created islands.
      SplitIsland(island_op, tf_executor::ControlType::get(&getContext()));
    
      // None of the originally given control deps are necessary.
      tf_executor::FetchOp fetch_op = graph_op.GetFetch();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device.cc

      }
      result.emplace(std::move(result_content));
      return result;
    }
    
    // Used as an argument to TFE_NewCustomDeviceTensorHandle, indicating how
    // ParallelTensors wrapped in TFE_TensorHandles should be cleaned up once their
    // reference counts drop to zero.
    void ParallelTensorDeallocator(void* data) {
      delete reinterpret_cast<ParallelTensor*>(data);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 29 22:05:31 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top