How to represent the [variable_scope] and [get_variable] in tensorflow java ?
Đang mở
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Java
- Star
- 928
- Fork
- 227
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
HI :
write the tensorflow code in python ,we always use with the variable_scope and get_variable method , like this
with tf.compat.v1.variable_scope('Qifficulty'):
question_difficulty_weights = tf.compat.v1.get_variable('weights', [q.get_shape()[-1], 1],
initializer= tf.initializers.glorot_uniform(seed=0))
# layers.xavier_initializer(seeed=0))
question_difficulty_biases = tf.compat.v1.get_variable('biases', [1],
initializer=tf.compat.v1.zeros_initializer())
question_difficulty = tf.nn.tanh(tf.matmul(q, question_difficulty_weights) + question_difficulty_biases)
but in java ,we can not use with key word , and I also can not find [variable_scope] and [get_variable] two apis.
I just want to know How to represent the [variable_scope] and [get_variable] in tensorflow java ,could we give me a damo about these?
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Trước tiên, hãy kiểm tra tài liệu TensorFlow Java API để tìm các API tương đương với variable_scope và get_variable trong Python được nêu trong issue. Cung cấp một ví dụ Java bao quát hành vi tạo biến và scoping được yêu cầu, đồng thời làm rõ liệu có tương đương trực tiếp hay không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, tensorflow
- Lĩnh vực
- machine-learning
- Loại issue
- Tài liệu
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100